Package sparked :: Module application :: Class Application
[hide private]
[frames] | no frames]

Class Application

source code

 twisted.application.service.Service --+    
                                       |    
twisted.application.service.MultiService --+
                                           |
                                          Application

The sparked base class.

Spark applications inherit from this class.

Instance Methods [hide private]
 
__init__(self, baseOpts, appOpts) source code
 
started(self)
The application has just been started.
source code
 
createMonitors(self) source code
 
stopService(self) source code
 
screensaverInhibit(self, reason)
Prevent the screen saver from starting.
source code
 
screensaverUnInhibit(self)
Resume the screen saver.
source code

Inherited from twisted.application.service.MultiService: __iter__, addService, getServiceNamed, privilegedStartService, removeService, startService

Inherited from twisted.application.service.Service: __getstate__, __providedBy__, disownServiceParent, setName, setServiceParent

Class Variables [hide private]
  screensaverInhibited = None
Flag which is non-zero when the screensaver has been inhibited.

Inherited from twisted.application.service.MultiService: __implemented__, __provides__

Inherited from twisted.application.service.Service: name, parent, running

Instance Variables [hide private]
  state = None
A StateMachine instance which represents the main state of the Spark application.
  baseOpts = None
the basic options that are given on the sparked commandline; instance of sparked.launcher.Options.
  appOpts = None
the additional applocation commandline options; instance of your application's yourapplication.Options.
  quitFlag = None
A launcher.QuitFlag instance controlling the clean shutdown of the program.
  title = 'Untitled'
The human-readable title of the application.
  monitors = None
the monitors.MonitorContainer instance with system monitors.
  statusWindow = None
the status window with information about the applictaion.
  stage = None
the stage for the display of graphics
Method Details [hide private]

__init__(self, baseOpts, appOpts)
(Constructor)

source code 
Overrides: twisted.application.service.MultiService.__init__

started(self)

source code 

The application has just been started. Add your own services, create the stage, the status windows, etc, etc, here.

stopService(self)

source code 
Overrides: twisted.application.service.Service.stopService

Instance Variable Details [hide private]

quitFlag

A launcher.QuitFlag instance controlling the clean shutdown of the program. Set by tap.makeService.
Value:
None