wx.propgrid.
PGChoiceAndButtonEditor
(PGChoiceEditor)¶Possible constructors:
PGChoiceAndButtonEditor()
__init__
(self)¶CreateControls
(self, propgrid, property, pos, size)¶Instantiates editor controls.
propgrid (wx.propgrid.PropertyGrid) – wx.propgrid.PropertyGrid to which the property belongs (use as parent for control).
property (wx.propgrid.PGProperty) – Property for which this method is called.
pos (wx.Point) – Position, inside wx.propgrid.PropertyGrid, to create control(s) to.
size (wx.Size) – Initial size for control(s).
Note
Primary control shall use id PG_SUBID1
, and secondary (button) control shall use PG_SUBID2
.
Unlike in previous version of wx.propgrid.PropertyGrid, it is no longer necessary to call wx.EvtHandler.Connect
for interesting editor events. Instead, all events from control are now automatically forwarded to wx.propgrid.PGEditor.OnEvent
and wx.propgrid.PGProperty.OnEvent
.
GetName
(self)¶Returns pointer to the name of the editor.
For example, PGEditor_TextCtrl has name “TextCtrl”. If you dont’ need to access your custom editor by string name, then you do not need to implement this function.
string