I need some help form all of you, so i have something like this
def __init__(self, master):
result = messagebox.askyesno("Wrong username or password.", "Do you want to try again?")
if result == True:
But when i execute the program the process fail.
Actually it should.
__init__ method is normally called once an instance is created. You need to redesign this to either recreate an instance (first call
pack_forget on that frame and then make new one and pack on that place), or do it using methods, like
Usually, loginboxes are made using
Entry as fields and some buttons to post a result. If done so, on error you could simply erase login or/and passwords entry box and show an error
What I mean is:
reference implementation of above is here