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 a 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 PB_USE_TEXTCTRL
style) and to 0 otherwise.
This class supports the following styles:
wx.PB_USE_TEXTCTRL
: Creates a text control to the left of the picker which is completely managed by this wx.PickerBase class.
Inheritance diagram for class
PickerBase:
Known Subclasses¶wx.ColourPickerCtrl, wx.DirPickerCtrl, wx.FilePickerCtrl, wx.FontPickerCtrl
Methods Summary¶ Properties Summary¶ Class API¶Possible constructors:
Base abstract class for all pickers which support an auxiliary text control.
None
parent (wx.Window)
id (wx.WindowID)
text (string)
pos (wx.Point)
size (wx.Size)
style (long)
validator (wx.Validator)
name (string)
bool
Returns the margin (in pixel) between the picker and the text control.
This function can be used only when HasTextCtrl
returns True
.
int
Returns the native implementation of the real picker control.
Note
The returned control in the generic implementation of wx.FilePickerCtrl, wx.DirPickerCtrl, wx.FontPickerCtrl and wx.ColourPickerCtrl is a specialized wx.Button class so that you can change its label doing, e.g.:
if wx.Platform == '__WXMSW__': # wxMSW is one of the platforms where the generic implementation # of wx.FilePickerCtrl is used... pButt = myFilePickerCtrl.GetPickerCtrl() if pButt is not None: pButt.SetLabel('Custom browse string')
Returns the proportion value of the picker.
int
style (long)
int
Returns a pointer to the text control handled by this window or None
if the PB_USE_TEXTCTRL
style was not specified when this control was created.
Note
The contents of the text control could be an invalid representation of the entity which can be chosen through the picker (e.g. when the user enters 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
.
int
style (long)
int
Returns True
if this window has a valid text control (i.e. if the PB_USE_TEXTCTRL
style was given when creating this control).
bool
Returns True
if the picker control is growable.
bool
Returns True
if the text control is growable.
This function can be used only when HasTextCtrl
returns True
.
bool
None
Sets the margin (in pixel) between the picker and the text control.
This function can be used only when HasTextCtrl
returns True
.
margin (int)
None
picker (wx.Control)
None
Sets the picker control as growable when grow
is True
.
grow (bool)
None
Sets the proportion value of the picker.
Look at the detailed description of wx.PickerBase for more info.
prop (int)
None
text (wx.TextCtrl)
None
Sets the text control as growable when grow
is True
.
This function can be used only when HasTextCtrl
returns True
.
grow (bool)
None
Sets the proportion value of the text control.
Look at the detailed description of wx.PickerBase for more info.
This function can be used only when HasTextCtrl
returns True
.
prop (int)
None
None
None
See GetInternalMargin
and SetInternalMargin
See GetPickerCtrl
and SetPickerCtrl
See GetTextCtrl
and SetTextCtrl
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4