How can I use this u_name
and u_pass
outside this for
loop?
cursr.execute("SELECT rowid ,* FROM usernameandpassword")
user_and_pass = (cursr.fetchall())
for users in user_and_pass:
global u_name
global u_pass
u_name = (users[1])
u_pass = (users[2])
if uni_username.get() == u_name and uni_pass.get() == u_pass:
show_new_user_window()