예제 #1
0
        def identify_dev_cb(model):
            self.device = device

            DeviceProfileCache.store(device)
            config.set_last_device(device.cached_id)

            hook_it_up(self.splash, DeviceListener(self.device), self.device)
예제 #2
0
        def identify_dev_cb(model):
            self.device = device

            DeviceProfileCache.store(device)
            config.set_last_device(device.cached_id)

            hook_it_up(self.splash, DeviceListener(self.device), self.device)
예제 #3
0
        def identify_dev_eb(failure):
            failure.trap(SerialException)
            
            from vmc.gtk import dialogs
            info = dict(name=device.name, vmc=APP_LONG_NAME)
            message = _('Device setup not completed')
            details = _("""
%(vmc)s cannot connect with the selected device (%(name)s).
""") % info
            dialogs.open_warning_dialog(message, details)
            config.set_last_device('')
            self.detect_hardware()
예제 #4
0
        def identify_dev_eb(failure):
            failure.trap(SerialException)

            from vmc.gtk import dialogs
            info = dict(name=device.name, vmc=APP_LONG_NAME)
            message = _('Device setup not completed')
            details = _("""
%(vmc)s cannot connect with the selected device (%(name)s).
""") % info
            dialogs.open_warning_dialog(message, details)
            config.set_last_device('')
            self.detect_hardware()
예제 #5
0
        def identify_dev_eb(failure):
            failure.trap(SerialException)
            
            from PyQt4.QtGui import QMessageBox
            info = dict(name=device.name, vmc=APP_LONG_NAME)
            message = _('Device setup not completed')
            details = _("""
%(vmc)s cannot connect with the selected device (%(name)s).
""") % info
            QMessageBox.warning(None, message, details)  
            config.set_last_device('')
            self.detect_hardware()
예제 #6
0
 def configure_hardware(self, device):
     self.device = device
     config.set_last_device(device)
     hook_it_up(self.splash, self.device)
예제 #7
0
 def configure_hardware(self, device):
     self.device = device
     config.set_last_device(device)
     hook_it_up(self.splash, self.device)