wx.propgrid.PGSpinCtrlEditor¶
Methods Summary¶CreateControls |
Instantiates editor controls. |
GetName |
Returns pointer to the name of the editor. |
OnEvent |
Handles events. |
Class API¶wx.propgrid.PGSpinCtrlEditor(PGTextCtrlEditor)¶CreateControls(self, propgrid, property, pos, size)¶Instantiates editor controls.
| Parameters: |
|
|---|---|
| Return type: |
Note
PG_SUBID1, and secondary (button) control shall use PG_SUBID2.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.
| Return type: | string |
|---|
OnEvent(self, propgrid, property, wnd_primary, event)¶Handles events.
Returns True if value in control was modified (see wx.propgrid.PGProperty.OnEvent for more information).
| Parameters: |
|
|---|---|
| Return type: | bool |
Note
wx.propgrid.PropertyGrid will automatically unfocus the editor when wxEVT_TEXT_ENTER is received and when it results in property value being modified. This happens regardless of editor type (ie. behaviour is same for any wx.TextCtrl and wx.ComboBox based editor).