Marco Prosperi
2014-10-22 22:27:55 UTC
hello, I'm trying to use the CustomCellChoiceEditor implemented as in the
attached example. The reason why I want a custom one is that in the
database table behind the grid I accept values like 0,1,2 while to the user
I want to show ['0 open','1 suspended','2 closed'] (I also use a custom
renderer, not shown here). I have two problems:
- in my original application when the user enables a cell editor, scroll
the horizontal bar until that cell is hidden and click on another visibile
cell the application crashes (not the attached script but maybe you can see
if I make something that causes a memory corruption)
- I would like to prevent the user from leaving a cell editor active (for
example: if you enable a cell editor with a double click and scroll with
horizontal bar the editor remains active). I've tried to use
EVT_LEAVE_WINDOW but it doesn't work in my implementation because when the
dropdown list of the choice control should be displayed the editor is
closed. How can I get the desired behaviour?
thank you in advance,
Marco
attached example. The reason why I want a custom one is that in the
database table behind the grid I accept values like 0,1,2 while to the user
I want to show ['0 open','1 suspended','2 closed'] (I also use a custom
renderer, not shown here). I have two problems:
- in my original application when the user enables a cell editor, scroll
the horizontal bar until that cell is hidden and click on another visibile
cell the application crashes (not the attached script but maybe you can see
if I make something that causes a memory corruption)
- I would like to prevent the user from leaving a cell editor active (for
example: if you enable a cell editor with a double click and scroll with
horizontal bar the editor remains active). I've tried to use
EVT_LEAVE_WINDOW but it doesn't work in my implementation because when the
dropdown list of the choice control should be displayed the editor is
closed. How can I get the desired behaviour?
thank you in advance,
Marco
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.