Module gtkindiclient :: Class _gtkindi_widgetlist_handler
[show private | hide private]
[frames | no frames]

Class _gtkindi_widgetlist_handler

_blocking_indi_object_handler --+    
                                |    
          gui_indi_object_handler --+
                                    |
                                   _gtkindi_widgetlist_handler

Known Subclasses:
_gtkindi_widget_handler, _gtkindi_widgetlist_vector_handler

A base class for handlers connecting an INDI object with a list of GTK widgets
Method Summary
  __init__(self, widgetlist)
NoneType set_bidirectional(self)
installs callbacks of the GUI that will call the function _blocking_on_gui_changed if the user changes the the GUI object associated with this gui_indi_object_handler .
NoneType unset_bidirectional(self)
uninstalls the GUI callback installed with set_bidirectional (see set_bidirectional for details)
    Inherited from gui_indi_object_handler
NoneType on_blocked(self, *args)
The method _blocking_on_gui_changed is called by the GUI, in order to inform us, that a widget has changed.
NoneType on_gui_changed(self, *args)
Important: Implement your GUI callback here but link you GUI callback signal to {_blocking_on_gui_changed} (see on_blocked if you want to know why)
NoneType _blocking_on_gui_changed(self, *args)
Called by the GUI whenever the widget associated with this handler has changed.
    Inherited from _blocking_indi_object_handler
NoneType _block(self)
activates the block.
BooleanType _is_blocked(self)
Return True if blocked , False otherwise
NoneType _unblock(self)
releases the block.
NoneType configure(self, *args)
This method will be called at least once by indiclient.
NoneType indi_object_change_notify(self, *args)
This method activates the block, calls the method on_indiobject_changed (It is called by bigindiclient.process_events each time an INDI object has been received)
NoneType on_indiobject_changed(self, *args)
While this function is called the block is active.

Instance Variable Summary
list of GTK.Widget widgetlist: The list GTK widgets to be connected
    Inherited from _blocking_indi_object_handler
IntType _blocked: A counter incremented each time the _block method is called and decremented by _unblock, >0 means blocked, ==0 mean unblocked

Method Details

__init__(self, widgetlist)
(Constructor)

Parameters:
widgetlist - The list containing the GTK.widget objects to be handled
           (type=list of Gtk.Widget)
Overrides:
indiclient._blocking_indi_object_handler.__init__

set_bidirectional(self)

installs callbacks of the GUI that will call the function _blocking_on_gui_changed if the user changes the the GUI object associated with this gui_indi_object_handler . The function _blocking_on_gui_changed will usually call the function on_gui_changed. The function on_gui_changed has to update and send the INDI object associated with this gui_indi_object_handler.
Returns:
None
           (type=NoneType)
Overrides:
indiclient.gui_indi_object_handler.set_bidirectional (inherited documentation)

unset_bidirectional(self)

uninstalls the GUI callback installed with set_bidirectional (see set_bidirectional for details)
Returns:
None
           (type=NoneType)
Overrides:
indiclient.gui_indi_object_handler.unset_bidirectional (inherited documentation)

Instance Variable Details

widgetlist

The list GTK widgets to be connected
Type:
list of GTK.Widget

Generated by Epydoc 2.1 on Sat Sep 10 10:26:03 2005 http://epydoc.sf.net