35 self.usernameEdit.setText(username) |
35 self.usernameEdit.setText(username) |
36 self.saveCheckBox.setEnabled(may_save) |
36 self.saveCheckBox.setEnabled(may_save) |
37 if not may_save: |
37 if not may_save: |
38 self.saveCheckBox.setChecked(False) |
38 self.saveCheckBox.setChecked(False) |
39 |
39 |
|
40 msh = self.minimumSizeHint() |
|
41 self.resize(max(self.width(), msh.width()), msh.height()) |
|
42 |
40 def getData(self): |
43 def getData(self): |
41 """ |
44 """ |
42 Public method to retrieve the login data. |
45 Public method to retrieve the login data. |
43 |
46 |
44 @return tuple of three values (username, password, save) |
47 @return tuple of three values (username, password, save) |