47 ) |
47 ) |
48 ) |
48 ) |
49 |
49 |
50 self.__migrations = migrations |
50 self.__migrations = migrations |
51 self.applicationComboBox.addItems([""] + sorted(self.__migrations.keys())) |
51 self.applicationComboBox.addItems([""] + sorted(self.__migrations.keys())) |
52 self.on_applicationComboBox_activated("") |
52 self.on_applicationComboBox_currentTextChanged("") |
53 |
53 |
54 msh = self.minimumSizeHint() |
54 msh = self.minimumSizeHint() |
55 self.resize(max(self.width(), msh.width()), msh.height()) |
55 self.resize(max(self.width(), msh.width()), msh.height()) |
56 |
56 |
57 def __updateOkButton(self): |
57 def __updateOkButton(self): |
62 self.endMigrationComboBox.currentText() |
62 self.endMigrationComboBox.currentText() |
63 ) |
63 ) |
64 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(enabled) |
64 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(enabled) |
65 |
65 |
66 @pyqtSlot(str) |
66 @pyqtSlot(str) |
67 def on_applicationComboBox_activated(self, app): |
67 def on_applicationComboBox_currentTextChanged(self, app): |
68 """ |
68 """ |
69 Private slot to update the migrations combo boxes. |
69 Private slot to update the migrations combo boxes. |
70 |
70 |
71 @param app name of the selected application |
71 @param app name of the selected application |
72 @type str |
72 @type str |
82 else: |
82 else: |
83 combo.addItem(migration) |
83 combo.addItem(migration) |
84 self.__updateOkButton() |
84 self.__updateOkButton() |
85 |
85 |
86 @pyqtSlot(str) |
86 @pyqtSlot(str) |
87 def on_endMigrationComboBox_activated(self, migration): # noqa: U100 |
87 def on_endMigrationComboBox_currentTextChanged(self, migration): # noqa: U100 |
88 """ |
88 """ |
89 Private slot handling the selection of a migration. |
89 Private slot handling the selection of a migration. |
90 |
90 |
91 @param migration name of the selected migration |
91 @param migration name of the selected migration |
92 @type str |
92 @type str |