wx.propgrid.PGChoiceAndButtonEditor¶
Class Hierarchy¶
Methods Summary¶
Instantiates editor controls. |
|
Returns pointer to the name of the editor. |
Properties Summary¶
See |
Class API¶
- class wx.propgrid.PGChoiceAndButtonEditor(PGChoiceEditor)¶
Possible constructors:
PGChoiceAndButtonEditor() -> None
Methods¶
- __init__(self)¶
- Return type:
None
- CreateControls(self, propgrid, property, pos, size)¶
Instantiates editor controls.
- Parameters:
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).
- Return type:
Note
It is not necessary to call
wx.EvtHandler.Bind
for interesting editor events. All events from controls are automatically forwarded towx.propgrid.PGEditor.OnEvent
andwx.propgrid.PGProperty.OnEvent
.
- GetName(self)¶
Returns pointer to the name of the editor.
For example, PGEditor_TextCtrl has name “TextCtrl”. If you don’t need to access your custom editor by string name, then you do not need to implement this function.
- Return type:
str
Properties¶