mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
buttons in muster login have with same width
This commit is contained in:
parent
ef776d9c0e
commit
923e8e8df9
1 changed files with 11 additions and 1 deletions
|
|
@ -122,7 +122,6 @@ class MusterLogin(QtWidgets.QWidget):
|
||||||
super().keyPressEvent(key_event)
|
super().keyPressEvent(key_event)
|
||||||
|
|
||||||
def setError(self, msg):
|
def setError(self, msg):
|
||||||
|
|
||||||
self.error_label.setText(msg)
|
self.error_label.setText(msg)
|
||||||
self.error_label.show()
|
self.error_label.show()
|
||||||
|
|
||||||
|
|
@ -148,6 +147,17 @@ class MusterLogin(QtWidgets.QWidget):
|
||||||
def save_credentials(self, username, password):
|
def save_credentials(self, username, password):
|
||||||
self.module.get_auth_token(username, password)
|
self.module.get_auth_token(username, password)
|
||||||
|
|
||||||
|
def showEvent(self, event):
|
||||||
|
super(MusterLogin, self).showEvent(event)
|
||||||
|
|
||||||
|
# Make btns same width
|
||||||
|
max_width = max(
|
||||||
|
self.btn_ok.sizeHint().width(),
|
||||||
|
self.btn_cancel.sizeHint().width()
|
||||||
|
)
|
||||||
|
self.btn_ok.setMinimumWidth(max_width)
|
||||||
|
self.btn_cancel.setMinimumWidth(max_width)
|
||||||
|
|
||||||
def closeEvent(self, event):
|
def closeEvent(self, event):
|
||||||
event.ignore()
|
event.ignore()
|
||||||
self._close_widget()
|
self._close_widget()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue