pyface.action.gui_application_action module

Abstract base class for all application actions.

class pyface.action.gui_application_action.GUIApplicationAction[source]

Bases: pyface.action.listening_action.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: pyface.action.gui_application_action.GUIApplicationAction

Abstract base class for application active window actions.

class pyface.action.gui_application_action.CreateWindowAction[source]

Bases: pyface.action.gui_application_action.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: pyface.action.gui_application_action.GUIApplicationAction

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

class pyface.action.gui_application_action.AboutAction[source]

Bases: pyface.action.gui_application_action.GUIApplicationAction

A standard ‘About’ dialog menu action.

class pyface.action.gui_application_action.CloseActiveWindowAction[source]

Bases: pyface.action.gui_application_action.ActiveWindowAction

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

This method closes the active window of the application.