36 self.portSpinBox.setValue(server.getPort()) |
36 self.portSpinBox.setValue(server.getPort()) |
37 self.passwordEdit.setText(server.getPassword()) |
37 self.passwordEdit.setText(server.getPassword()) |
38 self.sslCheckBox.setChecked(server.useSSL()) |
38 self.sslCheckBox.setChecked(server.useSSL()) |
39 |
39 |
40 self.__updateOkButton() |
40 self.__updateOkButton() |
|
41 |
|
42 msh = self.minimumSizeHint() |
|
43 self.resize(max(self.width(), msh.width()), msh.height()) |
41 |
44 |
42 def __updateOkButton(self): |
45 def __updateOkButton(self): |
43 """ |
46 """ |
44 Private method to update the OK button state. |
47 Private method to update the OK button state. |
45 """ |
48 """ |