Module ScriptChooser :: Class ScriptChooser
[hide private]
[frames] | no frames]

Class ScriptChooser

source code

                                  object --+        
                                           |        
AccessEngine.AEUserInterface.AEUserInterface --+    
                                               |    
                AccessEngine.AEChooser.AEChooser --+
                                                   |
                                                  ScriptChooser

Dialog for selecting Scripts to load and unload on-the-fly.

Instance Methods [hide private]
 
init(self, app_name, loaded, unloaded, timestamp, **kwargs)
Creates and shows the chooser dialog and its components.
source code
 
activate(self, timestamp, present=True, **kwargs)
Try to bring the window to the foreground.
source code
gtk.Widget
_createCustomWidget(self, source, name, func, *args)
Creates an ordered UIE chooser widget.
source code
 
_onOK(self, widget)
Handles 'OK' button 'clicked' events.
source code
 
_onCancel(self, widget)
Handles for 'Cancel' button 'clicked' events.
source code
 
_onApply(self, widget)
Handles 'Apply' button 'clicked' events.
source code
 
close(self)
Closes the chooser, preventing further chooser interaction with the user.
source code
string
getName(self)
Gets the name of the chooser.
source code

Inherited from AccessEngine.AEChooser.AEChooser: __call__, __init__, update

Inherited from AccessEngine.AEUserInterface.AEUserInterface: getClassName, getDescription, getPath

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
integer RAISE = RAISE
raise load priority (lower in stack) of AccessEngine.AEScript in list of scripts
integer LOWER = LOWER
lower load priority (raise in stack) of AccessEngine.AEScript in list of scripts
integer TO_LOAD = TO_LOAD
indicates a AccessEngine.AEScript is to be loaded in the current AETier, if OK or APPLY buttons are then selected.
integer TO_UNLOAD = TO_UNLOAD
indicates a AccessEngine.AEScript is to be unloaded from the current AETier, if OK or APPLY buttons are then selected.
boolean APP_SINGLETON = True
Allow only one instance of a chooser to exist at a time for a given application? This flag should be overriden by a subclass to indicate whether the chooser is an application singleton or not.

Inherited from AccessEngine.AEChooser.AEChooser: APPLY, CANCEL, GLOBAL_SINGLETON, OK

Instance Variables [hide private]
gtk.Dialog dialog
Dialog widget for choosing AccessEngine.AEScripts
GTKUIEView.UIEView uie_view
View of the status and order of loaded and unloaded AccessEngine.AEScripts

Inherited from AccessEngine.AEChooser.AEChooser: aid, block_signals

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

init(self, app_name, loaded, unloaded, timestamp, **kwargs)

source code 
Creates and shows the chooser dialog and its components.
Parameters:
  • app_name (string) - Name of application for current AETier
  • loaded (list of 3-tuple of string) - Loaded AccessEngine.AEScript class names, human readable names, and descriptions
  • unloaded (list of 3-tuple of string) - Unloaded AccessEngine.AEScript class names, human readable names, and descriptions
  • timestamp (float) - Time at which input was given indicating the start of this chooser
Overrides: AccessEngine.AEChooser.AEChooser.init

activate(self, timestamp, present=True, **kwargs)

source code 
Try to bring the window to the foreground.
Overrides: AccessEngine.AEChooser.AEChooser.activate

_createCustomWidget(self, source, name, func, *args)

source code 
Creates an ordered UIE chooser widget.
Parameters:
  • source (gtk.glade.XML) - glade XML parser
  • name (string) - Name of the widget to create
  • func (string) - Name of the function to call to create this widget
Returns: gtk.Widget
Custom widget

_onOK(self, widget)

source code 
Handles 'OK' button 'clicked' events. Gets the current user-configured loaded/unloaded lists, passes them on to DefaultDialogScript in a request to update the loaded AccessEngine.AEScripts for the current AETier, and then closes this ScriptChooser dialog.
Parameters:
  • widget (gtk.Widget) - source of GUI event

_onCancel(self, widget)

source code 
Handles for 'Cancel' button 'clicked' events. Signals to DefaultDialogScript that this AEChooser will close, then closes this ScriptChooser dialog.
Parameters:
  • widget (gtk.Widget) - source of GUI event

_onApply(self, widget)

source code 
Handles 'Apply' button 'clicked' events. Gets the current user-configured loaded/unloaded lists, passes them on to DefaultDialogScript in a request to update the loaded AccessEngine.AEScripts for the current AETier.
Parameters:
  • widget (gtk.Widget) - source of GUI event

close(self)

source code 
Closes the chooser, preventing further chooser interaction with the user.
Overrides: AccessEngine.AEChooser.AEChooser.close

getName(self)

source code 
Gets the name of the chooser.
Returns: string
Human readable name of the chooser
Overrides: AccessEngine.AEUserInterface.AEUserInterface.getName