UT330BUI/controller/controller.py
def write_config(self, config):

        """Writes config data to UT330B device."""

        if not self.connected:
            self.status = ("Cannot write UT330B configuration because "
                           "the UT330B is not connected.")
            self.update()
            return

        try:
            self.UT330B.write_config(config)
            self.status = "Configuration written to UT330B. "
            self.UT330B.write_datetime(config['timestamp'])
            self.status += "Datetime 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_config(self, config):
        if not self.connected:
            self.status = ("Cannot write UT330B configuration because "
                           "the UT330B is not connected.")
            self.update()
            return
        try:
            self.UT330B.write_config(config)
            self.status = "Configuration written to UT330B. "
            self.UT330B.write_datetime(config['timestamp'])
            self.status += "Datetime written to UT330B."
        except IOError as error:
            self.status = error.__str__()          
        except ValueError as error:
            self.status = error.__str__()            
        self.update()
def write_config ( self , config ) : if not self . connected : self . status = ( "Cannot write UT330B configuration because " "the UT330B is not connected." ) self . update ( ) return try : self . UT330B . write_config ( config ) self . status = "Configuration written to UT330B. " self . UT330B . write_datetime ( config [ 'timestamp' ] ) self . status += "Datetime 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
config