Skip to content

Commit 78db359

Browse files
authored
Merge pull request MagnoEfren#3 from r3back/fixed-button-bug
Se corrige un bug con el boton "Iniciar Sesion"
2 parents 26d2792 + 4f8ac5d commit 78db359

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)