Package Camelot :: Package camelot :: Package view :: Module main
[frames] | no frames]

Module main

source code

Main function, to be called to start the GUI interface
Classes
  Application
The camelot application. This class will take care of the order of initialization of various stuff needed to get the application up and running, each of its methods will be called in subsequent order, overwrite any of them to customize its behaviour.
Functions
 
main(application_admin, initialization=<function <lambda> at 0xbb7880c>, pre_initialization=<function <lambda> at 0xbb78b1c>)
shortcut main function, call this function to start the GUI interface with minimal hassle and without the need to construct an Application object. If you need to customize the initialization process, construct an Application subclass and use it's main method.
source code
Variables
  __package__ = 'Camelot.camelot.view'
Function Details

main(application_admin, initialization=<function <lambda> at 0xbb7880c>, pre_initialization=<function <lambda> at 0xbb78b1c>)

source code 

shortcut main function, call this function to start the GUI interface with minimal hassle and without the need to construct an Application object. If you need to customize the initialization process, construct an Application subclass and use it's main method.

@param application_admin: object of type ApplicationAdmin (as defined in application_admin.py) that specifies the look of the GUI interface @param initialization: function that will be called during the appearance of the splash screen, put all time consuming initialization here. this function will be called after the model thread has been started. @param pre-initialization: function that will be called before the model thread has been started, but after the QApplication has been created. This function can be used to run a configuration wizard before a connection to the database was made or any gui element has been constructed.