devctrl.gui.devices.device_selection.select_device_dialog#

select_device_dialog(dev_info: DeviceInfo, window_title: str = 'Device Selection', prompt: str = 'Select a device for <name>: ') tuple[str, str][source]#

Open a dialog with a :class:`.SelectDeviceWidget`self.

Parameters:
  • dev_info – Device info of the device to connect

  • window_title – Title of the dialog

  • prompt – Prompt to show. See SelectDeviceWidget for supported substitutions.

Returns:

device type, device name

This function is a compatible prompt_choice_func for the DeviceManager.