GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.FontPickerCtrl — wxPython 4.3.2 Docs
|
Creates this widget with given parameters. |
|
Returns the maximum point size value allowed for the user-chosen font. |
|
Returns the minimum point size value allowed for the user-chosen font. |
|
Returns the currently selected colour. |
|
Returns the currently selected font. |
|
Sets the maximum point size value allowed for the user-chosen font. |
|
Sets the minimum point size value allowed for the user-chosen font. |
|
Sets the font colour. |
|
Sets the currently selected font. |
Properties Summary¶See |
|
See |
|
See |
|
See |
Class API¶Possible constructors:
FontPickerCtrl() -> None FontPickerCtrl(parent, id=ID_ANY, font=NullFont, pos=DefaultPosition, size=DefaultSize, style=FNTP_DEFAULT_STYLE, validator=DefaultValidator, name=FontPickerCtrlNameStr) -> None
This control allows the user to select a font.
__init__ (self)
None
__init__ (self, parent, id=ID_ANY, font=NullFont, pos=DefaultPosition, size=DefaultSize, style=FNTP_DEFAULT_STYLE, validator=DefaultValidator, name=FontPickerCtrlNameStr)
Initializes the object and calls Create with all the parameters.
parent (wx.Window)
id (wx.WindowID)
font (wx.Font)
pos (wx.Point)
size (wx.Size)
style (long)
validator (wx.Validator)
name (string)
None
Creates this widget with given parameters.
parent (wx.Window) – Parent window, must not be non-null.
id (wx.WindowID) – The identifier for the control.
font (wx.Font) – The initial font shown in the control. If wx.NullFont is given, the default font is used.
pos (wx.Point) – Initial position.
size (wx.Size) – Initial size.
style (long) – The window style, see FNTP_ flags.
validator (wx.Validator) – Validator which can be used for additional data checks.
name (string) – Control name.
bool
True if the control was successfully created or False if creation failed.
variant (WindowVariant)
Returns the maximum point size value allowed for the user-chosen font.
int
Returns the minimum point size value allowed for the user-chosen font.
int
Added in version 4.1/wxWidgets-3.1.1.
Returns the currently selected colour.
Note that the colour of the font can only be set by the user under Windows currently, elsewhere this method simply returns the colour previously set by SetSelectedColour or black if it hadn’t been called.
Added in version 4.1/wxWidgets-3.1.0.
Returns the currently selected font.
Note that this function is completely different from wx.Window.GetFont .
Sets the maximum point size value allowed for the user-chosen font.
The default value is 100. Note that big fonts can require a lot of memory and CPU time both for creation and for rendering; thus, specially because the user has the option to specify the fontsize through a text control (see wx.FNTP_USE_TEXTCTRL), it’s a good idea to put a limit to the maximum font size when huge fonts do not make much sense.
max (int)
None
Sets the minimum point size value allowed for the user-chosen font.
The default value is 0.
min (int)
None
Added in version 4.1/wxWidgets-3.1.1.
Sets the font colour.
The font colour is actually only used under Windows currently, but this function is available under all platforms for consistency.
colour (wx.Colour)
None
Added in version 4.1/wxWidgets-3.1.0.
Sets the currently selected font.
Note that this function is completely different from wx.Window.SetFont .
font (wx.Font)
None
See GetMaxPointSize and SetMaxPointSize
See GetMinPointSize and SetMinPointSize
See GetSelectedColour and SetSelectedColour
See GetSelectedFont and SetSelectedFont