wx.StockPreferencesPage¶
Specialization of wx.PreferencesPage useful for certain commonly used preferences page.
On macOS, preferences pages named “General” and “Advanced” are commonly used in apps and the OS provides stock icons for them that should be used. Instead of reimplementing this behaviour yourself, you can inherit from wx.StockPreferencesPage and get correct title and icon.
Notice that this class only implements GetName
and GetIcon
, you still have to provide the rest of wx.PreferencesPage implementation.
Added in version 2.9.5.
Class Hierarchy¶
Methods Summary¶
Constructor. |
|
Reimplemented to return stock icon on macOS. |
|
Returns the page’s kind. |
|
Reimplemented to return suitable name for the page’s kind. |
Properties Summary¶
See |
|
See |
Class API¶
- class wx.StockPreferencesPage(PreferencesPage)¶
Possible constructors:
StockPreferencesPage(kind) -> None
Specialization of PreferencesPage useful for certain commonly used preferences page.
Methods¶
- GetIcon(self)¶
Reimplemented to return stock icon on macOS.
- Return type:
- GetKind(self)¶
Returns the page’s kind.
- Return type:
- GetName(self)¶
Reimplemented to return suitable name for the page’s kind.
- Return type:
str
Properties¶