21 def __init__(self, relPath, parent=None): |
21 def __init__(self, relPath, parent=None): |
22 """ |
22 """ |
23 Constructor |
23 Constructor |
24 |
24 |
25 @param relPath initial package path relative to the project root |
25 @param relPath initial package path relative to the project root |
26 (string) |
26 @type str |
27 @param parent reference to the parent widget (QWidget) |
27 @param parent reference to the parent widget |
|
28 @type QWidget |
28 """ |
29 """ |
29 super().__init__(parent) |
30 super().__init__(parent) |
30 self.setupUi(self) |
31 self.setupUi(self) |
31 |
32 |
32 self.okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok) |
33 self.okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok) |
41 @pyqtSlot(str) |
42 @pyqtSlot(str) |
42 def on_packageEdit_textChanged(self, txt): |
43 def on_packageEdit_textChanged(self, txt): |
43 """ |
44 """ |
44 Private slot called, when the package name is changed. |
45 Private slot called, when the package name is changed. |
45 |
46 |
46 @param txt new text of the package name edit (string) |
47 @param txt new text of the package name edit |
|
48 @type str |
47 """ |
49 """ |
48 self.okButton.setEnabled(txt != "") |
50 self.okButton.setEnabled(txt != "") |
49 |
51 |
50 def getData(self): |
52 def getData(self): |
51 """ |
53 """ |
52 Public method to retrieve the data entered into the dialog. |
54 Public method to retrieve the data entered into the dialog. |
53 |
55 |
54 @return package name (string) |
56 @return package name |
|
57 @rtype str |
55 """ |
58 """ |
56 return self.packageEdit.text() |
59 return self.packageEdit.text() |