mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More stupid PyQt enums
This commit is contained in:
parent
430991d56b
commit
b984d72958
@ -174,8 +174,8 @@ class SendEmail(QWidget, Ui_Form):
|
|||||||
button.clicked.connect(partial(self.create_service_relay, x))
|
button.clicked.connect(partial(self.create_service_relay, x))
|
||||||
self.relay_show_password.stateChanged.connect(
|
self.relay_show_password.stateChanged.connect(
|
||||||
lambda state : self.relay_password.setEchoMode(
|
lambda state : self.relay_password.setEchoMode(
|
||||||
self.relay_password.Password if
|
QLineEdit.EchoMode.Password if
|
||||||
state == 0 else self.relay_password.Normal))
|
state == 0 else QLineEdit.EchoMode.Normal))
|
||||||
self.test_email_button.clicked.connect(self.test_email)
|
self.test_email_button.clicked.connect(self.test_email)
|
||||||
|
|
||||||
def changed(self, *args):
|
def changed(self, *args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user