41 @param deviceData type of the device (defaults to None) |
41 @param deviceData type of the device (defaults to None) |
42 @type dict (optional) |
42 @type dict (optional) |
43 @param parent reference to the parent widget (defaults to None) |
43 @param parent reference to the parent widget (defaults to None) |
44 @type QWidget (optional) |
44 @type QWidget (optional) |
45 """ |
45 """ |
46 super(AddEditDevicesDialog, self).__init__(parent) |
46 super().__init__(parent) |
47 self.setupUi(self) |
47 self.setupUi(self) |
48 |
48 |
49 # populate the device type combo box |
49 # populate the device type combo box |
50 self.deviceTypeComboBox.addItem("", "") |
50 self.deviceTypeComboBox.addItem("", "") |
51 for board, desc in sorted(getSupportedDevices(), key=lambda x: x[1]): |
51 for board, desc in sorted(getSupportedDevices(), key=lambda x: x[1]): |