eric6/MicroPython/ConnectionSelectionDialog.py

changeset 8218
7c09585bd960
parent 8143
2c730d5fd177
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
35 @param currentType device type most recently selected 35 @param currentType device type most recently selected
36 @type str 36 @type str
37 @param parent reference to the parent widget (defaults to None) 37 @param parent reference to the parent widget (defaults to None)
38 @type QWidget (optional) 38 @type QWidget (optional)
39 """ 39 """
40 super(ConnectionSelectionDialog, self).__init__(parent) 40 super().__init__(parent)
41 self.setupUi(self) 41 self.setupUi(self)
42 42
43 for index, (vid, pid, description, portName) in enumerate( 43 for index, (vid, pid, description, portName) in enumerate(
44 sorted(ports, key=lambda x: x[3]) 44 sorted(ports, key=lambda x: x[3])
45 ): 45 ):

eric ide

mercurial