On 02/05/2015 10:47 AM, Ed Leafe wrote:
On Feb 5, 2015, at 12:23 PM, john <[email protected]> wrote:

makeGridEditor is a method in uiwx/__init__ - can anyone explain why it's 
there?  It appears that it is called from only uiwx/dGrid.py when setting up 
the dGrid test.  The way I understand to create a CellRederer does not match 
the code in makeGridEditor.  I not saying I know everything about CellRederers 
but to be honest I don't understand it.  There is no method clone, or draw.  I 
do not see where it inherits from either PyGridCellRenderer or GridCellRenderer.

Does anyone use the makeGridEdior in their code?  I ask because I'd like to 
remove it.
It looks like it's there to allow for customization of the class used to edit 
in a grid. wx defaults to a regular text box; the test code customizes that. I 
presume that others who use editable grids would like to have a simple enough 
way to customize that editor.


-- Ed Leafe

I see - but how difficult is it using the available 9 wxPython Grid Cell editors? Everything is very simple and straight forward. Also it's not coming close to working with wxPython 3.x. But I have to say I really don't understand the code. Maybe, after we commit the changes you can take a look at the method and determine what it should be doing or how to make it work. For now I'm removing it from the dGrid.py self test and will leave it in the __init__. I'll added a comment on it not currently working.

Johnf

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to