Debian Codegraph @

envisage/ui/tasks/action/exit_action.py

raw
1 # (C) Copyright 2007-2025 Enthought, Inc., Austin, TX
2 # All rights reserved.
3 #
4 # This software is provided without warranty under the terms of the BSD
5 # license included in LICENSE.txt and may be redistributed only under
6 # the conditions described in the aforementioned license. The license
7 # is also available online at http://www.enthought.com/licenses/BSD.txt
8 #
9 # Thanks for using Enthought open source!
10 # Enthought library imports.
11 from pyface.action.api import Action
12
13
14 class ExitAction(Action):
15 """An action that exits the application."""
16
17 #### 'Action' interface ###################################################
18
19 # A longer description of the action.
20 description = "Exit the application"
21
22 # The action's name (displayed on menus/tool bar tools etc).
23 name = "E&xit"
24
25 # A short description of the action used for tooltip text etc.
26 tooltip = "Exit the application"
27
28 ###########################################################################
29 # 'Action' interface.
30 ###########################################################################
31
32 def perform(self, event):
33 event.task.window.application.exit()