1 |
# Copyright (C) 2001 by Intevation GmbH |
# Copyright (C) 2001, 2002 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> |
4 |
# |
# |
26 |
""" |
""" |
27 |
Represent a single command. |
Represent a single command. |
28 |
|
|
29 |
A is identified by a name, it has a title (used in menu items and |
A command is identified by a name, it has a title (used in menu |
30 |
buttons, etc) and a callable object that can be invoked with the |
items and buttons, etc) and a callable object that can be invoked |
31 |
context as a single parameter. The context is currently the |
with the context as a single parameter. The context is currently the |
32 |
mainwindow object. |
mainwindow object. |
33 |
|
|
34 |
Additionally, a command may have functions that can determine |
Additionally, a command may have functions that can determine |