Inheritance diagram for wx.PickerBase:
Base abstract class for all pickers which support an auxiliary text control.
This class handles all positioning and sizing of the text control like a an horizontal wx.BoxSizer would do, with the text control on the left of the picker button. The proportion (see wx.Sizer documentation for more info about proportion values) of the picker control defaults to 1 when there isn’t a text control associated (see wx.PB_USE_TEXTCTRL style) and to 0 otherwise.
See also
wx.ColourPickerCtrl, wx.DirPickerCtrl, wx.FilePickerCtrl, wx.FontPickerCtrl
Window Style | Description |
---|---|
wx.PB_USE_TEXTCTRL | Creates a text control to the left of the picker which is completely managed by this wx.PickerBase class. |
Alternative constructor.
Parameters:
Returns:
bool
Returns the margin (in pixel) between the picker and the text control.
This function can be used only when HasTextCtrl returns True.
Returns:
int
Returns the proportion value of the picker.
Returns:
int
Returns a pointer to the text control handled by this window or None if the wx.PB_USE_TEXTCTRL style was not specified when this control was created.
Returns:
Note
the contents of the text control could be containing an invalid representation of the entity which can be chosen through the picker (e.g. the user entered an invalid colour syntax because of a typo). Thus you should never parse the content of the textctrl to get the user’s input; rather use the derived-class getter (e.g. wx.ColourPickerCtrl.GetColour, wx.FilePickerCtrl.GetPath, etc).
Returns the proportion value of the text control.
This function can be used only when HasTextCtrl returns True.
Returns:
int
Returns True if this window has a valid text control (i.e. if the wx.PB_USE_TEXTCTRL style was given when creating this control).
Returns:
bool
Returns True if the picker control is growable.
Returns:
bool
Returns True if the text control is growable.
This function can be used only when HasTextCtrl returns True.
Returns:
bool
Sets the margin (in pixel) between the picker and the text control.
This function can be used only when HasTextCtrl returns True.
Parameters:
Sets the picker control as growable when grow is True.
Parameters:
Sets the proportion value of the picker.
Parameters:
Sets the text control as growable when grow is True.
This function can be used only when HasTextCtrl returns True.
Parameters:
Sets the proportion value of the text control.
This function can be used only when HasTextCtrl returns True.
Parameters: