| 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 |
""" An action that shows the 'About' dialog. """ |
| 11 |
|
| 12 |
|
| 13 |
# Enthought library imports. |
| 14 |
from pyface.action.api import Action |
| 15 |
|
| 16 |
|
| 17 |
class AboutAction(Action): |
| 18 |
"""An action that shows the 'About' dialog.""" |
| 19 |
|
| 20 |
#### 'Action' interface ################################################### |
| 21 |
|
| 22 |
# A longer description of the action. |
| 23 |
description = "Display information about the application" |
| 24 |
|
| 25 |
# The action's name (displayed on menus/tool bar tools etc). |
| 26 |
name = "About" |
| 27 |
|
| 28 |
# A short description of the action used for tooltip text etc. |
| 29 |
tooltip = "Display information about the application" |
| 30 |
|
| 31 |
########################################################################### |
| 32 |
# 'Action' interface. |
| 33 |
########################################################################### |
| 34 |
|
| 35 |
def perform(self, event): |
| 36 |
"""Perform the action.""" |
| 37 |
|
| 38 |
self.window.application.about() |