| Home | Trees | Indices | Help |
|
|---|
|
|
lib.processmanager.wx.App --+
|
object --+ |
| |
lib.userparams.ClassPrefs --+
|
object --+ |
| |
lib.processmanager.debugmixin --+
|
Peppy
Main application object.
This handles the initialization of the debug parameters for objects and loads the configuration file, plugins, configures the initial keyboard mapping, and other lower level initialization from the BufferApp superclass.
| Nested Classes | |
|
Inherited from |
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Class Variables | |
verbose = 0
|
|
options = {}
|
|
args = []
|
|
icon = "icons/peppy.png"
|
|
base_preferences = "preferences.cfg"
|
|
override_preferences = "peppy.cfg"
|
|
standard_plugin_dirs = ['plugins', 'hsi']
|
|
preferences_plugin_dir = "plugins"
|
|
server_port_filename = ".server.port"
|
|
verboselevel = {'.*Frame': 2, 'ActionMenu.*': 4, 'ActionTool.*
|
|
minimal_config = {'BufferFrame': {'width': 700, 'height': 700,
|
|
preferences_tab = "General"
|
|
preferences_sort_weight = 0Sorting weight (from 0 to 1000) if you want to group items out of the |
|
default_classprefs = StrParam('plugin_search_path', 'plugins',
|
|
mouse = Mouse()
|
|
user = User()
|
|
tabs = Tabs()
|
|
language = Language()
|
|
config = None
|
|
yielding = False
|
|
|
Inherited from Inherited from |
|
| Properties | |
|
Inherited from |
| Method Details |
Main application initialization. Called by the wx framework and used instead of the __init__ method in a wx application. |
Process a small number of configuration options before plugins are loaded. Plugins can also define command line options, which obviously delays full command line processing until plugins are loaded. However, a few options must be parsed before further processing takes place. These are processed here. |
Process the bulk of the command line options. Because eventually it will be possible to load command line options from plugins, most of the command line parsing happens after plugins are loaded. The bootstrap options are repeated here so that a usage statement will show the options. |
Set the class's debuglevel if the verbosity level is high enough. Matches the class name against list of regular expressions in verboselevel to see if extra verbosity is needed to turn on debugging output for that class.
|
Find all classes that use the debugmixin and set the logging level to the value of verbose.
|
Determine if a single instance server is running. If the server port specification file exists, try to open that file to determine the port that is being used by the other running instance. |
Determine the port to use for the load file server. Find a port that is open (i.e. that doesn't respond when trying to open it) in the specified range and return a LoadFileProxy for it. |
Autoload plugins from peppy plugins directory. All .py files that exist in the peppy.plugins directory are loaded here. Currently uses a naive approach by loading them in the order returned by os.listdir. No dependency ordering is done. |
Autoload plugins from peppy plugins directory. All .py files that exist in the peppy.plugins directory are loaded here. Currently uses a naive approach by loading them in the order returned by os.listdir. No dependency ordering is done. |
Autoload setuptools plugins. All setuptools plugins with the peppy entry point are loaded here, if setuptools is installed. |
Force all frames to update their enable status. Loop through each frame and force an update of the enable/disable state of ui items. The menu does this in response to a user event, so this is really for the toolbar and other always-visible widgets that aren't automatically updated. |
Recreate the UI for all frames. Loop through each frame and force an update of the entire UI. This is useful after changing languages to force the menubar to be redrawn in the new language. |
Make sure you don't try to wx.Yield inside another wx.Yield wx.Yield doesn't like being called by another function when it's in the middle of another yield, so guard against that by using this barrier. |
| Class Variable Details |
verboselevel
|
minimal_config
|
default_classprefs
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Feb 21 14:51:20 2008 | http://epydoc.sourceforge.net |