49 enable = enable and self.nameCombo.currentText() != "" |
49 enable = enable and self.nameCombo.currentText() != "" |
50 |
50 |
51 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(enable) |
51 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(enable) |
52 |
52 |
53 @pyqtSlot(str) |
53 @pyqtSlot(str) |
54 def on_nameEdit_textChanged(self, txt): |
54 def on_nameEdit_textChanged(self, _txt): |
55 """ |
55 """ |
56 Private slot to handle changes of the new name. |
56 Private slot to handle changes of the new name. |
57 |
57 |
58 @param txt text of the edit |
58 @param _txt text of the edit (unused) |
59 @type str |
59 @type str |
60 """ |
60 """ |
61 self.__updateUI() |
61 self.__updateUI() |
62 |
62 |
63 @pyqtSlot(bool) |
63 @pyqtSlot(bool) |
64 def on_namedButton_toggled(self, checked): |
64 def on_namedButton_toggled(self, _checked): |
65 """ |
65 """ |
66 Private slot to handle changes of the selection method. |
66 Private slot to handle changes of the selection method. |
67 |
67 |
68 @param checked state of the check box |
68 @param _checked state of the check box (unused) |
69 @type bool |
69 @type bool |
70 """ |
70 """ |
71 self.__updateUI() |
71 self.__updateUI() |
72 |
72 |
73 @pyqtSlot(int) |
73 @pyqtSlot(int) |
74 def on_nameCombo_currentIndexChanged(self, index): |
74 def on_nameCombo_currentIndexChanged(self, _index): |
75 """ |
75 """ |
76 Private slot to handle changes of the selected patch name. |
76 Private slot to handle changes of the selected patch name. |
77 |
77 |
78 @param index current index |
78 @param _index current index (unused) |
79 @type int |
79 @type int |
80 """ |
80 """ |
81 self.__updateUI() |
81 self.__updateUI() |
82 |
82 |
83 def getData(self): |
83 def getData(self): |