pdk.Gui.Application ($Date: 2002/12/04 10:16:36 $) | index pdk/Gui/Application.py |
The pdk application class. The pdkApp class features: The strongest advantage in using this class is the integration with the
application registry: if your app is called "foo", you can initialize the
various XML data bases in the registry with plain XML files "foo_<db name>.xml",
located in the same directory as the main .py file (e.g., "foo_gui.xml" is
used to initialize the GUI layout data base). Note that the XML file is only
used to update the registry if it was modified after the last time the
application was run. In fact, once the registry has been initialized, your
application will run perfectly fine without the XML files. To register your own command line options, overwrite OnInit of pdkApp
and call registerCmdLineOptions before you call OnInit of the
pdkApp base class (see the pdk.Base.CmdLineOptionHandler class for
the format of the arguments to this method). The application options are declared in a tag named "Options" in the
<app_name>_system.xml file and can then be accessed by the getOption and
setOption methods. Initialization and shutdown callbacks are registered with the
registerInitCallback and registerShutdownCallback methods, which
require overriding OnInit in the same way as registering command line
options does. If the GUI XML layout specifies a widget with the pdk ID string "SPLASHSCREEN",
it is automatically created, posted and then withdrawn during application
startup (see the pdk.Gui.Widgets.InitializationDialogs module for a
pre-defined splashscreen class). FOG 01.2000
Classes | ||||||||||||||||||||||
|
Functions | ||
|
Author | ||
$Author: gathmann $
|