src/eric7/MicroPython/AddEditDevicesDialog.py

branch
eric7
changeset 10690
fab36645aa7d
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
equal deleted inserted replaced
10689:3ede487187f2 10690:fab36645aa7d
71 71
72 msh = self.minimumSizeHint() 72 msh = self.minimumSizeHint()
73 self.resize(max(self.width(), msh.width()), msh.height()) 73 self.resize(max(self.width(), msh.width()), msh.height())
74 74
75 @pyqtSlot(int) 75 @pyqtSlot(int)
76 def on_deviceTypeComboBox_currentIndexChanged(self, index): 76 def on_deviceTypeComboBox_currentIndexChanged(self, _index):
77 """ 77 """
78 Private slot to handle the selection of a device type. 78 Private slot to handle the selection of a device type.
79 79
80 @param index index of the current item 80 @param _index index of the current item (unused)
81 @type int 81 @type int
82 """ 82 """
83 board = self.deviceTypeComboBox.currentData() 83 board = self.deviceTypeComboBox.currentData()
84 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( 84 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
85 bool(board) 85 bool(board)

eric ide

mercurial