UT330BUI/controller/controller.py
def write_offsets(self, offsets):

        """Writes config data to UT330B device."""
        
        if not self.connected:
            self.status = ("Cannot write UT330B offsets because "
                           "the UT330B is not connected.")
            self.update()
            return

        try:
            self.UT330B.write_offsets(offsets)
            self.status = "Configuration written to UT330B. "
        except IOError as error:
            self.status = error.__str__()
        except ValueError as error:
            self.status = error.__str__()
            
        self.update()
Writes config data to UT330B device.
Writes config data to UT330B device.
Writes config data to UT330B device .
def write_offsets(self, offsets):
        if not self.connected:
            self.status = ("Cannot write UT330B offsets because "
                           "the UT330B is not connected.")
            self.update()
            return
        try:
            self.UT330B.write_offsets(offsets)
            self.status = "Configuration written to UT330B. "
        except IOError as error:
            self.status = error.__str__()
        except ValueError as error:
            self.status = error.__str__()
        self.update()
def write_offsets ( self , offsets ) : if not self . connected : self . status = ( "Cannot write UT330B offsets because " "the UT330B is not connected." ) self . update ( ) return try : self . UT330B . write_offsets ( offsets ) self . status = "Configuration written to UT330B. " except IOError as error : self . status = error . __str__ ( ) except ValueError as error : self . status = error . __str__ ( ) self . update ( )
Writes config data to UT330B device.
Writes config data to UT330B device .
"""Writes config data to UT330B device."""
self
offsets