pyface.action.gui_application_action module

Abstract base class for all application actions.

class pyface.action.gui_application_action.GUIApplicationAction[source]

Bases: ListeningAction

Abstract base class for GUI Application actions.

application = Instance("pyface.gui_application.GUIApplication")

The application that the action is associated with.

destroy()[source]

Called when the action is no longer required.

Removes all the task listeners.

class pyface.action.gui_application_action.ActiveWindowAction[source]

Bases: GUIApplicationAction

Abstract base class for application active window actions.

class pyface.action.gui_application_action.CreateWindowAction[source]

Bases: GUIApplicationAction

A standard ‘New Window’ menu action.

perform(event=None)[source]

Call the appropriate function.

This looks for a method to call based on the extended method name stored in the method trait. If the method is empty, then this follows the usual Action method resolution.

class pyface.action.gui_application_action.ExitAction[source]

Bases: GUIApplicationAction

A standard ‘Quit’ or ‘Exit’ menu action.

class pyface.action.gui_application_action.AboutAction[source]

Bases: GUIApplicationAction

A standard ‘About’ dialog menu action.

class pyface.action.gui_application_action.CloseActiveWindowAction[source]

Bases: ActiveWindowAction

A standard ‘Close window’ menu action at the application level.

This method closes the active window of the application.