UT330BUI/controller/controller.py
def read_config(self):
        """Reads config from UT330B device."""
        
        if not self.connected:
            self.status = ("Cannot read UT330B configuration because "
                           "the UT330B is not connected.")
            self.update()
            return

        try:
            self.device_config = self.UT330B.read_config()
            self.status = "Configuration read from UT330B."

            if len(self.device_config) == 0:
                self.status = "No config data read from device."

        except IOError as error:
            self.status = error.__str__()

        self.update()
Reads config from UT330B device.
Reads config from UT330B device.
Reads config from UT330B device .
def read_config(self):
        if not self.connected:
            self.status = ("Cannot read UT330B configuration because "
                           "the UT330B is not connected.")
            self.update()
            return
        try:
            self.device_config = self.UT330B.read_config()
            self.status = "Configuration read from UT330B."
            if len(self.device_config) == 0:
                self.status = "No config data read from device."
        except IOError as error:
            self.status = error.__str__()
        self.update()
def read_config ( self ) : if not self . connected : self . status = ( "Cannot read UT330B configuration because " "the UT330B is not connected." ) self . update ( ) return try : self . device_config = self . UT330B . read_config ( ) self . status = "Configuration read from UT330B." if len ( self . device_config ) == 0 : self . status = "No config data read from device." except IOError as error : self . status = error . __str__ ( ) self . update ( )
Reads config from UT330B device.
Reads config from UT330B device .
"""Reads config from UT330B device."""
self