Package flumotion :: Package admin :: Package gtk :: Module wizard :: Class Wizard
[hide private]

Class Wizard

source code

          object --+        
                   |        
          ??.GObject --+    
                       |    
ui.glade.GladeBacked --+    
                       |    
    ui.glade.GladeWindow --+
                           |
                          Wizard
Known Subclasses:

A generic wizard.

This wizard runs its own GObject main loop. The wizard is run with the run() method.

Example:

 w = Wizard('foo', 'first-step', FirstStep)
 w.show()
 w.run() => {'bank-account': 'foo'}
Instance Methods [hide private]
 
__init__(self, initial_page)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_setup_ui(self) source code
 
set_page(self, name) source code
 
on_delete_event(self, *window) source code
 
on_next(self, button) source code
 
on_prev(self, button) source code
 
set_sensitive(self, is_sensitive) source code
 
run(self)
Run in a recursive main loop.
source code
 
stop(self) source code
 
run_async(self)
Show the wizard.
source code

Inherited from ui.glade.GladeWindow: connect_signal, destroy, with_blocked_signal

Inherited from unreachable.GObject: __cmp__, __copy__, __deepcopy__, __delattr__, __gdoc__, __gobject_init__, __hash__, __new__, __repr__, __setattr__, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from object: __getattribute__, __reduce__, __reduce_ex__, __str__

Class Variables [hide private]
  name = None
  steps = None
str glade_file = 'admin-wizard.glade'
filename of glade file containing the interface
  __gtype__ = <GType flumotion+admin+gtk+wizard+Wizard (25628688)>

Inherited from ui.glade.GladeWindow: interesting_signals

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

Instance Variables [hide private]

Inherited from ui.glade.GladeWindow: window

Inherited from ui.glade.GladeBacked: glade_dir, glade_typedict, widgets

Properties [hide private]

Inherited from unreachable.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, initial_page)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • initial_page (str) - name of the WizardStep to start on
Overrides: ui.glade.GladeBacked.__init__

run(self)

source code 

Run in a recursive main loop. Will block until the user finishes or closes the wizard.

run_async(self)

source code 

Show the wizard. Returns a deferred that fires when the user has closed the wizard, either via completing the process or has cancelled somehow.

Returns:
a deferred that will fire the state dict accumulated by the pages, or None on cancel