phoenix_title 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.

New in version 2.9.5.


class_hierarchy Class Hierarchy

Inheritance diagram for class StockPreferencesPage:

method_summary Methods Summary

__init__

Constructor.

GetIcon

Reimplemented to return stock icon on macOS.

GetKind

Returns the page’s kind.

GetName

Reimplemented to return suitable name for the page’s kind.


property_summary Properties Summary

Icon

See GetIcon

Name

See GetName


api Class API

class wx.StockPreferencesPage(PreferencesPage)

Possible constructors:

StockPreferencesPage(kind)

Specialization of PreferencesPage useful for certain commonly used preferences page.


Methods

__init__(self, kind)

Constructor.

Parameters:

kind (Kind) –



GetIcon(self)

Reimplemented to return stock icon on macOS.

Return type:

wx.BitmapBundle



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


Properties

Icon

See GetIcon



Name

See GetName