eric6/MicroPython/IgnoredDevicesDialog.py

changeset 8218
7c09585bd960
parent 7923
91e843545d9a
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
23 @param deviceList list of ignored serial devices given by VID and PID 23 @param deviceList list of ignored serial devices given by VID and PID
24 @type list of tuple of (int, int) 24 @type list of tuple of (int, int)
25 @param parent reference to the parent widget 25 @param parent reference to the parent widget
26 @type QWidget 26 @type QWidget
27 """ 27 """
28 super(IgnoredDevicesDialog, self).__init__(parent) 28 super().__init__(parent)
29 self.setupUi(self) 29 self.setupUi(self)
30 30
31 self.devicesEditWidget.setList([ 31 self.devicesEditWidget.setList([
32 "{0} ({1:04x}/{2:04x})".format(description, vid, pid) 32 "{0} ({1:04x}/{2:04x})".format(description, vid, pid)
33 for vid, pid, description in deviceList 33 for vid, pid, description in deviceList

eric ide

mercurial