5 |
5 |
6 """ |
6 """ |
7 Module implementing the Add New Parameter dialog. |
7 Module implementing the Add New Parameter dialog. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt5.QtCore import pyqtSlot |
10 from PyQt6.QtCore import pyqtSlot |
11 from PyQt5.QtWidgets import QDialog, QDialogButtonBox |
11 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
12 |
12 |
13 from .Ui_AddParameterDialog import Ui_AddParameterDialog |
13 from .Ui_AddParameterDialog import Ui_AddParameterDialog |
14 |
14 |
15 |
15 |
16 class AddParameterDialog(QDialog, Ui_AddParameterDialog): |
16 class AddParameterDialog(QDialog, Ui_AddParameterDialog): |
25 @type QWidget |
25 @type QWidget |
26 """ |
26 """ |
27 QDialog.__init__(self, parent) |
27 QDialog.__init__(self, parent) |
28 self.setupUi(self) |
28 self.setupUi(self) |
29 |
29 |
30 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
30 self.__okButton = self.buttonBox.button( |
|
31 QDialogButtonBox.StandardButton.Ok) |
31 self.__okButton.setEnabled(False) |
32 self.__okButton.setEnabled(False) |
32 |
33 |
33 msh = self.minimumSizeHint() |
34 msh = self.minimumSizeHint() |
34 self.resize(max(self.width(), msh.width()), msh.height()) |
35 self.resize(max(self.width(), msh.width()), msh.height()) |
35 |
36 |