Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Login():
- DoctorUserNames = ["1"]
- DoctorPasswords= ["123"]
- ManagerUserNames =[]
- ManagerPasswords = []
- TreatmentUserNames = []
- TreatmentPasswords = []
- if User_Type == "Doctor":
- print("Test")
- for i in DoctorUserNames:
- print("Test2")
- if UsernameLogin in DoctorUserNames:
- print("Test3")
- else:
- messagebox.showerror("Incorrect","Invalid Username or Password")
- if PasswordLogin in DoctorPasswords:
- Doctors()
- else:
- messagebox.showerror("Incorrect","Invalid Username or Password")
- def Users():
- global UserNameE
- global PasswordE
- global User_Type
- global UserGUI
- UserGUI = Tk()
- UserGUI.title ("Login")
- w, h = UserGUI.winfo_screenwidth(), UserGUI.winfo_screenheight()
- UserGUI.overrideredirect(1)
- UserGUI.geometry("%dx%d+0+0" % (w, h))
- UserDesc = Label(UserGUI, text = "User Type:",font = ("impact",25),width = 30).place(x = 355, y=332)
- UserName = Label(UserGUI, text = "Username:",font = ("impact",25),width = 30).place(x = 355, y=383)
- Password = Label(UserGUI, text = "Password:",font = ("impact",25),width = 30).place(x = 355, y=430)
- UserNameE = Entry(UserGUI, width = 30).place(x = 700, y=400)
- PasswordE = Entry(UserGUI, width = 30).place(x = 700, y=450)
- User_Type = Entry(UserGUI, width = 30).place(x = 700, y=350)
- Submit = Button(UserGUI, text="Login", command=Login, fg = "Black", font = ("impact",80)).place(x =1290, y=720)
- AdminBypass = Button(UserGUI, text="Admin", command=Doctors).place(x = 750, y=850)
- Exit = Button(UserGUI, text="Exit", command=Exit_Program, fg = "Black", font = ("impact",80)).place(x =0, y=720)
- Doctors()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement