pyface.i_application_window module

The interface of a top-level application window.

class pyface.i_application_window.IApplicationWindow(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]

Bases: IWindow

The interface for a top-level application window.

The application window has support for a menu bar, tool bar and a status bar (all of which are optional).

Notes

To use, create a sub-class of this class and override the _create_contents() method.

icon = Image()

The window icon. The default is toolkit specific.

menu_bar_manager = Instance(IMenuBarManager)

The menu bar manager for the window.

status_bar_manager = Instance(IStatusBarManager)

The status bar manager for the window.

tool_bar_managers = List(Instance(IToolBarManager))

The collection of tool bar managers for the window.

class pyface.i_application_window.MApplicationWindow[source]

Bases: HasTraits

The mixin class that contains common code for toolkit specific implementations of the IApplicationWindow interface.

Implements: destroy(), _create_trim_widgets()

icon = Image()

The icon to display in the application window title bar.

menu_bar_manager = Instance(IMenuBarManager)

The menu bar manager for the window.

status_bar_manager = Instance(IStatusBarManager)

The status bar manager for the window.

tool_bar_managers = List(Instance(IToolBarManager))

The collection of tool bar managers for the window.

destroy()[source]

Destroy the control if it exists.