Package Editra :: Package src :: Module Editra
[hide private]

Module Editra

source code

This module defines the Editra Application object and the Main method for running Editra.


Author: Cody Precord <cprecord@editra.org>

Classes [hide private]
  Editra
The Editra Application Object
Functions [hide private]
 
InitConfig()
Initializes the configuration data
source code
 
UpgradeOldInstall()
Upgrade an old installation and transfer all files if they exist
source code
 
PrintHelp()
Print command line help
source code
 
ProcessCommandLine()
Process the command line switches
source code
 
Main()
Parses command line options, loads the user profile, creates an instance of Editra and starts the main loop.
source code
 
_Main(opts, args)
Main method
source code
Variables [hide private]
  __svnid__ = '$Id: Editra.py 59989 2009-04-03 01:57:17Z CJP $'
  __revision__ = '$Revision: 59989 $'
  ID_UPDATE_CHECK = 279
  APP_CMD_OPEN_WINDOW = u'Editra.OpenWindow'
Function Details [hide private]

InitConfig()

source code 

Initializes the configuration data

Postcondition: all configuration data is set

UpgradeOldInstall()

source code 

Upgrade an old installation and transfer all files if they exist

Returns:
bool (True if success, False if failure)

Note: FOR INTERNAL USE ONLY

PrintHelp()

source code 

Print command line help

Postcondition: Help is printed and program exits

ProcessCommandLine()

source code 

Process the command line switches

Returns:
tuple ([switches,], [args,])

_Main(opts, args)

source code 

Main method

Parameters:
  • opts - Commandline options
  • args - Commandline arguments