Trees | Index | Help |
|
---|
Module gtkindiclient :: Class gtkindiclient |
|
bigindiclient
--+ |indiclient
--+ | gtkindiclient
Method Summary | |
---|---|
| |
_ccdpreview
|
Connects a Gtk.DrawingArea and 3 GTK.Range objects (like sliders, scrollbars etc.) to an INDI device. |
_comboboxentryhandler
|
Connects an indiswitchvector object (with rule
OneOfMany ) to a GTK.comboboxentryBoxEntry (not a
GTK.comboboxentryBox) object. |
_entryhandler
|
Connects an indielement to a GTK.Entry (can also be
used with any GTK object providing a set_text method) (see also _entryhandler ) |
_indistream
|
Connects a Gtk.DrawingArea to an INDI device. |
_labelhandler
|
Connects an indielement to a GTK.Label (see also _labelhandler ) |
_rangehandler
|
Connects an indielement to a GTK.Range (like slider
scrollbar etc.) (see also _rangehandler ) |
_spinbuttonhandler
|
Connects an indielement to a GTK.Spinbutton (see also
_spinbuttonhandler ) |
_statuslabelhandler
|
Connects the status property of an indivector to a GTK.Label (see also _statuslabelhandler ) |
_switchlabelhandler
|
Connects an indiswitch to a GTK.Label, replacing
On and Off by a customisable label string |
_togglebuttonshandler
|
Connects a list of Gtk.ToggleButton to an indiswitchvector (see _togglebuttonshandler ) |
_vectorlabelhandler
|
Connects an indivector object to a GTK.Label object
(see also _vectorlabelhandler ) |
gui_indi_object_handler
|
This function looks for installed indi_custom_vector_handler objects,
matching devicename and vectorname and type . |
_ccdpreview
|
Return the _ccdpreview object installed for this
device. |
NoneType |
Sets up a GTK.Range widget with the information contained in element. |
NoneType |
Distributes the BLOBs to the ccdpreview and stream objects |
NoneType |
Called during the process_events method each time an INDI
element has been received |
Inherited from indiclient | |
BooleanType |
Returns Boolean representing the value of the element requested. |
FloatType |
Returns a floating point number representing the value of the element requested. |
StringType |
Returns a text representing the value of the element requested. |
indivector
|
Sets the value of of an indi element by a boolean, and sends it to the server |
indivector
|
Sets the value of an indi element by a floating point number, and sends it to the server |
indivector
|
Sets all indiswitch elements in this vector to
Off . |
indivector
|
Sets the value of an element by a text, and sends it to the server |
Inherited from bigindiclient | |
indi_custom_element_handler
|
Adds a custom handler function for an indielement , the handler will be called
each time the indielement is received. |
indi_custom_vector_handler
|
Adds a custom handler function for an indivector , the handler will be called each
time the vector is received. |
mini_element_handler
|
Adds handler that will be called each time the element is received. |
NoneType |
Sends a signal to the server that tells it, that this client wants to receive indiblob objects. |
indielement
|
Returns an indielement matching the given devicename and vectorname This method will wait until it
has been received. |
indivector
|
Returns an indivector matching the given devicename and vectorname This method will wait until it
has been received. |
NoneType |
Has to be called frequently by any program using this client. |
NoneType |
must be called in order to close the indiclient instance |
NoneType |
Resets the connection to the server |
NoneType |
Sends an INDI vector to the INDI server. |
NoneType |
Sets new def handlers. |
NoneType |
Sets a new message handler. |
NoneType |
Sets a new timeout handler. |
NoneType |
prints all indivectors and their elements to the screen |
NoneType |
Looks if the requested vector has already been received and waits until it is received otherwise |
NoneType |
Char data handler for expat parser. |
NoneType |
Called whenever an indivector was received with an def*vector tag. |
NoneType |
Called whenever an INDI message has been received from the server. |
NoneType |
Called whenever an indielement has been requested but was not received for a time longer than timeout since the request was
issued. |
NoneType |
End of XML element handler for expat parser. |
NoneType |
Looks in self.currentVector for an existing indivector
matching the name attibute given in attrs , and updates it according to attrs . |
NoneType |
Looks for an existing indivector matching the device and
name attibutes given in attrs , and updates it according to attrs |
NoneType |
receive data from the server |
NoneType |
A "thread" that receives data from the server |
NoneType |
Start XML element handler for expat parser. |
NoneType |
Called during the process_events method each time an
indivector element has been received |
Instance Variable Summary | |
---|---|
list of _ccdpreview |
ccdpreviewlist : A list of ccdpreviews connected to INDI devices |
list of _indistream |
indistreamlist : A list of indistreams connected to INDI devices |
Inherited from bigindiclient | |
function | blob_def_handler : Called when a new indiblobvector is defined by the driver
(see set_def_handlers ) |
StringType | currentData : A buffer to accumulate the character data to be written into the value
attribute of currentElement |
indivector |
currentElement : The INDI element currently being processed by the XML parser |
indimessage |
currentMessage : The INDI message currently being processed by the XML parser |
indivector |
currentVector : The INDI vector currently being processed by the XML parser |
list of indivector |
defvectorlist : A list of vectors that have been received with def*Vector
signal at least one time |
xml.parsers.expat | expat : an expat XML parser |
StringType | host : The hostname of the INDI server, this instance of indiclient is connected to |
_indilist of indivector |
indivectors : The list of all indivectors received so far |
function | message_handler : (see set_message_handler ) |
function | number_def_handler : Called when a new indinumbervector is defined by the driver
(see set_def_handlers ) |
IntType | port : The port address of the INDI server, this instance of indiclient is connected to |
Queue.Queue | receive_event_queue : A background process (_receiver ) is continuesly receiving data
and putting them into this queue. |
threading.Timer | receivetimer : needed to run the _receive thread |
Queue.Queue | running_queue : During its destructor indiclient puts signal into this queue in order
to stop the background process. |
socket.socket.socket | socket : a TCP/IP socket to communicate with the server |
function | text_def_handler : Called when a new inditextvector is defined by the driver
(see set_def_handlers ) |
FloatType | timeout : A timeout value (see timeout_handler ) |
function | timeout_handler : This function will be called whenever an indielement has been
requested but was not received for a time longer than
timeout since the request was issued. |
BooleanType | verbose : If True all XML data will be printed to the screen |
_indiobjectfactory() | _factory : A factory used to create and classify objects during the XML parsing
process. |
Method Details |
---|
__init__(self,
host,
port)
|
add_ccdpreview(self, devicename, drawingareawidget, brightnesswidget, contrastwidget, gammawidget)Connects a Gtk.DrawingArea and 3 GTK.Range objects (like sliders,
scrollbars etc.) to an INDI device. Any BLOBs with the extension
indiclient.enable_blob
|
add_comboboxentry(self, devicename, vectorname, widget)Connects anindiswitchvector object (with rule
OneOfMany ) to a GTK.comboboxentryBoxEntry (not a
GTK.comboboxentryBox) object. The labels of the indiswitch objects will be fed into the
popdown menu of the comboboxentrybox, the label of the active switch
will put into the comboboxentrybox entry. (see also _comboboxentryhandler )
|
add_entry(self, devicename, vectorname, elementname, widget)Connects anindielement to a GTK.Entry (can also be
used with any GTK object providing a set_text method) (see also _entryhandler )
|
add_indistream(self, devicename, drawingareawidget)Connects a Gtk.DrawingArea to an INDI device. Any blobs with the
extension indiclient.enable_blob
|
add_label(self, devicename, vectorname, elementname, widget)Connects anindielement to a GTK.Label (see also _labelhandler )
|
add_range(self, devicename, vectorname, elementname, widget)Connects anindielement to a GTK.Range (like slider
scrollbar etc.) (see also _rangehandler )
|
add_spinbutton(self, devicename, vectorname, elementname, widget)Connects anindielement to a GTK.Spinbutton (see also
_spinbuttonhandler )
|
add_statuslabel(self, devicename, vectorname, widget)Connects the status property of anindivector to a GTK.Label (see also _statuslabelhandler )
|
add_switchlabel(self, devicename, vectorname, elementname, widget, onlabel, offlabel)Connects anindiswitch to a GTK.Label, replacing
On and Off by a customisable label string
|
add_togglebuttons(self, devicename, vectorname, widgetlist)Connects a list of Gtk.ToggleButton to anindiswitchvector (see _togglebuttonshandler )
|
add_vectorlabel(self, devicename, vectorname, widget)Connects anindivector object to a GTK.Label object
(see also _vectorlabelhandler )
|
get_handler(self, devicename, vectorname, type)This function looks for installedindi_custom_vector_handler objects,
matching devicename and vectorname and type . If exactly one is found, it is
returned. Otherwise an exception is raised.
|
get_preview(self, devicename)
|
setup_range(self, vector, element, widget)Sets up a GTK.Range widget with the information contained in element. Set minimum and maximum values as well as the incremental steps and the value of widget are set up.
|
_blob_received(self, vector, blob)Distributes the BLOBs to the ccdpreview and stream objects
|
_element_received(self, vector, element)Called during theprocess_events method each time an INDI
element has been received
|
Instance Variable Details |
---|
ccdpreviewlistA list of ccdpreviews connected to INDI devices
|
indistreamlistA list of indistreams connected to INDI devices
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Sep 10 10:26:05 2005 | http://epydoc.sf.net |