wx.StockPreferencesPage¶Specialization of wx.PreferencesPage useful for certain commonly used preferences page.
On OS X, 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 behavior yourself, you can inherit from wx.StockPreferencesPage and get correct title and icon.
Notice that this class only implements GetName and GetLargeIcon, you still have to provide the rest of wx.PreferencesPage implementation.
New in version 2.9.5.
Methods Summary¶__init__ |
Constructor. |
GetKind |
Returns the page’s kind. |
GetLargeIcon |
Reimplemented to return stock icon on OS X. |
GetName |
Reimplemented to return suitable name for the page’s kind. |
Class API¶wx.StockPreferencesPage(PreferencesPage)¶Possible constructors:
StockPreferencesPage(kind)
Specialization of PreferencesPage useful for certain commonly used preferences page.
GetKind(self)¶Returns the page’s kind.
| Return type: | wx.StockPreferencesPage.Kind |
|---|
GetName(self)¶Reimplemented to return suitable name for the page’s kind.
| Return type: | string |
|---|
LargeIcon¶See GetLargeIcon