"Choice" editor is unexpectedly restricted when used with wx.propgrid.PyEnumProperty
|Reported by:||mirari||Owned by:||AW|
""" ~Minimal example of unexpected behaviour of the "Choice"
0-eth option of the Choice dropdown menu initially does not respond to selection when used
as editor with wx.propgrid.PyEnumProperty
When overriding OnSetValue in wx.propgrid.PyEnumProperty the problem persists;
if OnSetValue is not overridden the 0-eth option becomes selectable after one other option has first been selected.
wx.version: 184.108.40.206 gtk2 (classic)
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
I would expect all fields to respond to selection from initialization.
Also, according to
the default version of the method OnSetValue does nothing, so overriding it with an empty method should have no effect.
When simply setting the editor type to Choice, the 0-eth option does not respond to clicks
in the dropdown menu until another option has first been selected;
the 0-eth option then reponds to selection in the same way as the other fields.
When overriding OnSetValue (e.g. to convert the value to another representation),
the 0-eth option remains unselectable even when another option has first been selected.
Change History (4)
Changed 4 years ago by mirari
comment:1 Changed 20 months ago by awi
- Keywords wxEnumProperty index added; Editors "Choice" removed
- Patch set
- Version changed from 2.9.3 to dev-latest