Beispiel #1
0
 def _ask_user_for_device(devices, callback, splash):
     controller = DeviceSelectionController(Model(), devices, callback,
                                            splash)
     view = DeviceSelectionView(controller)
     view.set_parent_view(
         self.splash.view)  # so that we are on top of splash
     view.show()
        def _ask_user_for_device(devices, callback, splash):
            cached_devices = DeviceProfileCache.get_cached_devices()

            for cached_device in list(cached_devices):
                if isinstance(cached_device, DBusDevicePlugin) \
                        and not cached_device in devices:
                    cached_devices.remove(cached_device)

            all_devices = cached_devices + [
                device for device in devices if device not in cached_devices
            ]
            controller = DeviceSelectionController(Model(), all_devices,
                                                   callback, splash)
            view = DeviceSelectionView(controller)
            view.show()
Beispiel #3
0
 def __init__(self):
     self.ctrl = SplashController(Model())
     self.view = SplashView(self.ctrl)
     self.loop = None
     self.view.show()
 def __init__(self):
     super(CheckBoxPopupDialogCtrl, self).__init__(Model())
     self.checked = False
 def __init__(self):
     super(PopupDialogCtrl, self).__init__(Model())
Beispiel #6
0
 def on_contacts_button_clicked(self, widget):
     ctrl = ContactsListController(Model(), self)
     view = ContactsListView(ctrl)
     resp = view.run()
 def __init__(self):
     Model.__init__(self)
     self.adapter = get_bluetooth_adapter()
     self.queue = None
 def __init__(self, device):
     Model.__init__(self)
     self.device = device
Beispiel #9
0
 def __init__(self):
     Model.__init__(self)
     self.adapter = get_bluetooth_adapter()
     self.queue = None
Beispiel #10
0
 def __init__(self, device):
     Model.__init__(self)
     self.device = device