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()
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()
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): 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()