30 @param saveIt flag indicating the value for the save checkbox |
31 @param saveIt flag indicating the value for the save checkbox |
31 @type bool |
32 @type bool |
32 @param parent reference to the parent widget |
33 @param parent reference to the parent widget |
33 @type QWidget |
34 @type QWidget |
34 """ |
35 """ |
|
36 if parent is None: |
|
37 parent = QCoreApplication.instance().getMainWindow() |
|
38 |
35 super().__init__(parent) |
39 super().__init__(parent) |
36 self.setupUi(self) |
40 self.setupUi(self) |
37 |
41 |
38 self.infoLabel.setText(info) |
42 self.infoLabel.setText(info) |
39 self.usernameEdit.setText(username) |
43 self.usernameEdit.setText(username) |