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

Class _gtkindi_widget_vector_handler

                   indi_vector_identifier --+
                                            |
_blocking_indi_object_handler --+           |
                                |           |
          gui_indi_object_handler --+       |
                                    |       |
          _gtkindi_widgetlist_handler --+   |
                                        |   |
                  _gtkindi_widget_handler --+
                                            |
                                           _gtkindi_widget_vector_handler

Known Subclasses:
_comboboxentryhandler, _statuslabelhandler, _vectorlabelhandler

A base class for handlers dealing with and INDI vector and a single GTK widget
Method Summary
  __init__(self, devicename, vectorname, widget)
indivector get_vector(self)
Returns the indivector this handler is associated with.
  on_gui_changed(self, widget, event)
NoneType update_indi_vector(self, vector)
Called when the widget has changed and the INDI vector needs to be updated
    Inherited from _gtkindi_widgetlist_handler
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 _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
GTK.Widget widget: The GTK widget
    Inherited from _gtkindi_widgetlist_handler
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
    Inherited from indi_vector_identifier
StringType devicename: The name of the device contaning the vector to be uniquely identifyed by this object
StringType vectorname: The name of the indivector to be uniquely identifyed by this object

Method Details

__init__(self, devicename, vectorname, widget)
(Constructor)

Parameters:
devicename - The name of the device
           (type=StringType)
vectorname - The name of the INDIVector
           (type=StringType)
widget - The GTK widget to be connected
           (type=Gtk.Widget)
Overrides:
gtkindiclient._gtkindi_widget_handler.__init__

get_vector(self)

Returns the indivector this handler is associated with.
Returns:
the indivector this handler is associated with
           (type=indivector)

update_indi_vector(self, vector)

Called when the widget has changed and the INDI vector needs to be updated
Parameters:
vector - the indivector to update
           (type=indivector)
Returns:
None
           (type=NoneType)

Instance Variable Details

widget

The GTK widget
Type:
GTK.Widget

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