phoenix_title wx.propgrid.PGCheckBoxEditor


class_hierarchy Class Hierarchy

Inheritance diagram for class PGCheckBoxEditor:

method_summary Methods Summary

__init__

CreateControls

Instantiates editor controls.

DrawValue

Draws value for given property.

GetName

Returns pointer to the name of the editor.

GetValueFromControl

Returns value from control, via parameter variant.

OnEvent

Handles events.

SetControlIntValue

Sets control’s value specifically from int (applies to choice etc.).

SetValueToUnspecified

Sets value in control to unspecified.

UpdateControl

Loads value from property to the control.


property_summary Properties Summary

Name

See GetName


api Class API

class wx.propgrid.PGCheckBoxEditor(PGEditor)

Possible constructors:

PGCheckBoxEditor() -> None

Methods

__init__(self)
Return type:

None



CreateControls(self, propgrid : PropertyGrid, property : PGProperty, pos : Point, size : Size)

Instantiates editor controls.

Parameters:
Return type:

wx.propgrid.PGWindowList

Note



DrawValue(self, dc : DC, rect : Rect, property : PGProperty, text : str)

Draws value for given property.

Parameters:
Return type:

None



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



GetValueFromControl(self, variant : PGVariant, property : PGProperty, ctrl : Window)

Returns value from control, via parameter variant.

Usually ends up calling property’s StringToValue() or IntToValue(). Returns True if value was different.

Parameters:
Return type:

bool



OnEvent(self, propgrid : PropertyGrid, property : PGProperty, wnd_primary : Window, event : 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 (i.e. behaviour is same for any wx.TextCtrl and wx.ComboBox based editor).



SetControlIntValue(self, property : PGProperty, ctrl : Window, value : int)

Sets control’s value specifically from int (applies to choice etc.).

Parameters:
Return type:

None



SetValueToUnspecified(self, property : PGProperty, ctrl : Window)

Sets value in control to unspecified.

Parameters:
Return type:

None



UpdateControl(self, property : PGProperty, ctrl : Window)

Loads value from property to the control.

Parameters:
Return type:

None


Properties

Name

See GetName