Skip to content

Commit 4f8ac5d

Browse files
authored
Se corrige un bug con el boton "Iniciar Sesion"
Se agrega una variable extra para verificar que el boton no fue clickeado, de lo contrario si el usuario clickea despues de haber ingresado los datos correctamente se queda la barra de carga congelada en 100%
1 parent 26d2792 commit 4f8ac5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Login/login.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import conexion
1010

1111
class Login(Frame):
12+
executing = False
13+
1214
def __init__(self, master, *args):
1315
super().__init__( master,*args)
1416
self.user_marcar = "Ingrese su correo"
@@ -65,6 +67,9 @@ def verificacion_users(self):
6567
password_entry = self.entry2.get()
6668

6769
if users_entry!= self.user_marcar or self.contra_marcar != password_entry:
70+
if self.executing:
71+
return None
72+
6873
users_entry = str("'" + users_entry + "'")
6974
password_entry = str("'" + password_entry + "'")
7075

@@ -91,6 +96,7 @@ def verificacion_users(self):
9196
dato2 = dato2[0][2]
9297

9398
if dato1 != [] and dato2 != []:
99+
self.executing = True
94100
self.acceder_ventana_dos()
95101
else:
96102
self.indica1['text'] = 'Usuario incorrecto'

0 commit comments

Comments
 (0)