From 61e8c85bbef49c59340253d953020b2868f4358c Mon Sep 17 00:00:00 2001 From: Olli Graf Date: Mon, 17 Feb 2025 06:49:49 +0100 Subject: [PATCH] Styling des "Passwort vergessen" Button. --- teil29/login.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/teil29/login.py b/teil29/login.py index ed6db89..faa652f 100755 --- a/teil29/login.py +++ b/teil29/login.py @@ -48,10 +48,9 @@ class MainWindow(QMainWindow): layout.addWidget(self.login_button, 4, 2) # Password vergessen - self.forgot_pw_label = QLabel() - - self.forgot_pw_label.setText('https://test.com/forgotpw') - layout.addWidget(self.forgot_pw_label,5,1) + self.forgot_pw_button = QPushButton('Passwort vergessen') + self.forgot_pw_button.setStyleSheet('QPushButton {background-color: #A3C1DA; color: blue;}') + layout.addWidget(self.forgot_pw_button,5,2) container = QWidget() container.setLayout(layout) @@ -64,6 +63,9 @@ class MainWindow(QMainWindow): def handle_login_button(self): print(f'Login mit {self.username_input.text()} and {self.password_input.text()}') + def handle_forgot_pw_button(self): + print('Forgot PW') +