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 an object |
32 |
mainwindow object. |
with a few public attributes for the application object, the session |
33 |
|
and the main window. |
34 |
|
|
35 |
Additionally, a command may have functions that can determine |
Additionally, a command may have functions that can determine |
36 |
whether the command can be invoked or whether it is checked in case |
whether the command can be invoked or whether it is checked in case |