hello, I would like to use a ChoiceRenderer in a DataViewListCtrl. I haven’t found a way to use it in a DataViewListCtrl directly (there is no AppendChoiceColumn available for this class) so I’m trying to use a DataViewCtrl with a PyDataViewModel (DataViewCtrl has AppendChoiceColumn method). My first problem is that in the attached script DataViewCtrl results empty as if PyDataViewModel is empty (but it isn’t).
Where am I going wrong?
Im on wxpy classic 3.02, windows 7, python 2.7 64-bit
thanks in advance for hints
Marco
test_dataviewctrl.py (2.79 KB)
Hello Marco,
i was curious if i could make the DataViewCtrl working, so i tried a bit. After looking in the online docs and the wxPython demo i had a working DataVieCtrl. Have a look at the attached script.
I think the main problem was, that you had not all necessary function overridden. And i’m sure that in my version are errors too.
Torsten
test_dataviewctrl.py (2.54 KB)
Interesting when I run this code with wxPython 3.x I can only activate the checkbox on the second row (b) on Linux python 2.7.x wxPython 3.0.2.0 GTK (classic).
···
On Fri, Jan 22, 2016 at 8:32 AM, Torsten topic2k@googlemail.com wrote:
Hello Marco,
i was curious if i could make the DataViewCtrl working, so i tried a bit. After looking in the online docs and the wxPython demo i had a working DataVieCtrl. Have a look at the attached script.
I think the main problem was, that you had not all necessary function overridden. And i’m sure that in my version are errors too.
Torsten
–
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes, interesting. Didn’t tried the checkboxes. On Win10 (64bit) with Python 2.7.11 (32bit) and wxPython 3.0.2 classic i even can’t click any checkbox, they are deactivated (greyed out).
thank you Torsten for you help
For me too the checkboxes are all deactivated and should be the expected behaviour given that the default value for parameter ‘mode’ in AppendToggleColumn is DATAVIEW_CELL_INERT (changing it to DATAVIEW_CELL_ACTIVATABLE makes them editable). What I think is strange is that toggle column by default isn’t editable while the choice column is editable
Marco
···
On Friday, January 22, 2016 at 7:31:58 PM UTC+1, Torsten wrote:
Yes, interesting. Didn’t tried the checkboxes. On Win10 (64bit) with Python 2.7.11 (32bit) and wxPython 3.0.2 classic i even can’t click any checkbox, they are deactivated (greyed out).