33 super(PipPackagesInputDialog, self).__init__(parent) |
33 super(PipPackagesInputDialog, self).__init__(parent) |
34 self.setupUi(self) |
34 self.setupUi(self) |
35 |
35 |
36 self.setWindowTitle(title) |
36 self.setWindowTitle(title) |
37 |
37 |
38 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
38 self.buttonBox.button( |
|
39 QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
39 |
40 |
40 self.userCheckBox.setVisible(install) |
41 self.userCheckBox.setVisible(install) |
41 |
42 |
42 msh = self.minimumSizeHint() |
43 msh = self.minimumSizeHint() |
43 self.resize(max(self.width(), msh.width()), msh.height()) |
44 self.resize(max(self.width(), msh.width()), msh.height()) |
48 Private slot handling entering package names. |
49 Private slot handling entering package names. |
49 |
50 |
50 @param txt name of the requirements file |
51 @param txt name of the requirements file |
51 @type str |
52 @type str |
52 """ |
53 """ |
53 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(bool(txt)) |
54 self.buttonBox.button( |
|
55 QDialogButtonBox.StandardButton.Ok).setEnabled(bool(txt)) |
54 |
56 |
55 def getData(self): |
57 def getData(self): |
56 """ |
58 """ |
57 Public method to get the entered data. |
59 Public method to get the entered data. |
58 |
60 |