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.
New in version 2.9.5.
Constructor. |
|
Reimplemented to return stock icon on macOS. |
|
Returns the page’s kind. |
|
Reimplemented to return suitable name for the page’s kind. |
See |
|
See |
wx.
StockPreferencesPage
(PreferencesPage)¶Possible constructors:
StockPreferencesPage(kind)
Specialization of PreferencesPage useful for certain commonly used preferences page.
GetIcon
(self)¶Reimplemented to return stock icon on macOS.
GetKind
(self)¶Returns the page’s kind.
GetName
(self)¶Reimplemented to return suitable name for the page’s kind.
string