Package flumotion :: Package admin :: Package gtk :: Module configurationassistant :: Class ScenarioStep
[hide private]

Class ScenarioStep

source code

                               gtk.VBox --+        
                                          |        
        gobject.GObject --+               |        
                          |               |        
    kiwi.ui.views.SlaveView --+           |        
                              |           |        
         kiwi.ui.views.BaseView --+       |        
                                  |       |        
kiwi.controllers.BaseController --+       |        
                                  |       |        
    kiwi.ui.delegates.GladeDelegate --+   |        
                                      |   |        
                   ui.glade.GladeBacked --+        
                                          |        
                       ui.glade.GladeWidget --+    
                                              |    
                    extern.log.log.Loggable --+    
                                              |    
                           ui.wizard.WizardStep --+
                                                  |
                                                 ScenarioStep

This step is showing a list of possible scenarios. The user will select the scenario he want to use, then the scenario itself will decide the future steps.

Instance Methods [hide private]
 
__init__(self, wizard)
Creates a new GladeDelegate.
source code
 
setup(self)
This is called after the step is constructed, to be able to do some initalization time logic in the steps.
source code
WizardStep instance, deferred or None. The deferred must return a WizardStep instance. None means that the next section should be fetched or if there are no more sections, to finish the wizard.
getNext(self)
Called when the user presses next in the wizard.
source code
 
addScenario(self, scenarioDesc, scenarioType)
Adds a new entry to the scenarios list of the wizard.
source code
 
_on_radiobutton__activate(self, radio) source code
 
_on_radiobutton__toggled(self, radio, scenarioType) source code

Inherited from ui.wizard.WizardStep: __repr__, activated

Inherited from kiwi.ui.views.BaseView: check_focus, get_focus_widget, get_glade_adaptor, hide, hide_and_quit, quit_if_last, set_title, set_transient_for, show, show_all

Inherited from kiwi.ui.views.BaseView (private): _attach_callbacks, _setup_keypress_handler

Inherited from kiwi.ui.views.SlaveView: add_proxy, attach_slave, check_and_notify_validity, connect_multiple, detach_slave, disconnect_autoconnected, enable_window_controls, focus_toplevel, focus_topmost, force_validation, get_sizegroups, get_slave, get_toplevel, get_topmost_widget, get_widget, handler_block, handler_unblock, on_attach, on_startup, register_validate_function, set_controller, show_and_loop

Inherited from kiwi.ui.views.SlaveView (private): _attach_groups, _check_reserved, _get_notebooks, _get_toplevel, _merge_sizegroup, _on_child__validation_changed, _on_notebook_slave__validation_changed

Inherited from kiwi.controllers.BaseController: get_parent, get_view, on_key_press, set_keyactions, set_parent, set_view, update_keyactions

Inherited from kiwi.controllers.BaseController (private): _get_all_methods

Inherited from extern.log.log.Loggable: __providedBy__, __provides__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  name = "Scenario"
hash(x)
  title = _('Scenario')
hash(x)
  section = _('Scenario')
hash(x)
  icon = 'wizard.png'
str gladeFile = 'scenario-wizard.glade'
filename of glade file containing the interface
  docSection = 'help-configuration-assistant-scenario'
hash(x)
  docAnchor = ''
hash(x)
  docVersion = 'local'

Inherited from ui.wizard.WizardStep: gladeTypedict, sidebarName

Inherited from ui.glade.GladeBacked: toplevel_name

Inherited from ui.glade.GladeBacked (private): _window

Inherited from kiwi.ui.views.SlaveView: controller, domain, gladefile, toplevel

Inherited from kiwi.controllers.BaseController: view

Inherited from extern.log.log.Loggable: __implemented__, logCategory

Instance Variables [hide private]

Inherited from ui.glade.GladeBacked: widgets

Method Details [hide private]

__init__(self, wizard)
(Constructor)

source code 

Creates a new GladeDelegate. The keyactions parameter is sent to kiwi.controllers.BaseController, the rest are sent to kiwi.ui.views.BaseView

Parameters:
  • wizard - the wizard this step is a part of
Overrides: kiwi.controllers.BaseController.__init__
(inherited documentation)

setup(self)

source code 

This is called after the step is constructed, to be able to do some initalization time logic in the steps.

Overrides: ui.wizard.WizardStep.setup
(inherited documentation)

getNext(self)

source code 

Called when the user presses next in the wizard.

Returns: WizardStep instance, deferred or None. The deferred must return a WizardStep instance. None means that the next section should be fetched or if there are no more sections, to finish the wizard.
name of next step
Overrides: ui.wizard.WizardStep.getNext
(inherited documentation)

addScenario(self, scenarioDesc, scenarioType)

source code 

Adds a new entry to the scenarios list of the wizard.

Parameters:
  • scenarioDesc (str) - Description that will be shown on the list.
  • scenarioType (str) - The type of the scenario we are adding.