TwiceAsNice
2019-02-18
|
Public Member Functions | |
def | __init__ (self, devicename, vectorname) |
def | configure (self, vector) |
def | get_vector (self) |
def | on_indiobject_changed (self, vector) |
![]() | |
def | on_blocked (self, args) |
def | on_gui_changed (self, args) |
def | set_bidirectional (self) |
def | unset_bidirectional (self) |
![]() | |
def | __init__ (self) |
def | indi_object_change_notify (self, args) |
def | on_indiobject_changed (self, args) |
def | configure (self, args) |
![]() | |
def | __init__ (self, devicename, vectorname) |
Public Attributes | |
devicename | |
vectorname | |
type | |
![]() | |
devicename | |
vectorname | |
A base class for a custom handler that will be called each time a specified INDI vector is received. @ivar indi : The indiclient instance calling this handler (will be set by indiclient automatically) @type indi : L{indiclient} @ivar devicename : The name of the device this handler is associated with @type devicename : StringType @ivar vectorname : The name of the indivector this handler is associated with @type vectorname : StringType @ivar type : The type of the handler @type type : StringType
def indiclient.indi_custom_vector_handler.__init__ | ( | self, | |
devicename, | |||
vectorname | |||
) |
@param devicename: The name of the device @type devicename: StringType @param vectorname: The name of the Indivector @type vectorname: StringType
def indiclient.indi_custom_vector_handler.configure | ( | self, | |
vector | |||
) |
This hander method will be called only once. It will be called before the L{on_indiobject_changed} method is called for the first time. It will be called as soon as L{vector} has been received for the first time. It can be used to do some lengthy calculations in order to set up related data structures that need to be done only once and require information from the associated L{indivector} and L{indielement} objects. @param vector: A copy of the L{indivector} that has been received. @type vector: L{indivector} @return: B{None} @rtype: NoneType
def indiclient.indi_custom_vector_handler.get_vector | ( | self | ) |
Returns the L{indivector} this handler is associated with. @return: the L{indivector} this handler is associated with @rtype: L{indivector}
def indiclient.indi_custom_vector_handler.on_indiobject_changed | ( | self, | |
vector | |||
) |
This hander method will be called each time a specified INDI element/vector is received. You have write a class inheriting from this class and overload this function. @param vector: A copy of the L{indivector} that has been received. @type vector: L{indivector} @return: B{None} @rtype: NoneType
indiclient.indi_custom_vector_handler.devicename |
indiclient.indi_custom_vector_handler.type |
indiclient.indi_custom_vector_handler.vectorname |