Advertisement
Guest User

CS_Code

a guest
Jun 29th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. def Login():
  2. DoctorUserNames = ["1"]
  3. DoctorPasswords= ["123"]
  4. ManagerUserNames =[]
  5. ManagerPasswords = []
  6. TreatmentUserNames = []
  7. TreatmentPasswords = []
  8.  
  9.  
  10. if User_Type == "Doctor":
  11. print("Test")
  12. for i in DoctorUserNames:
  13. print("Test2")
  14. if UsernameLogin in DoctorUserNames:
  15. print("Test3")
  16. else:
  17. messagebox.showerror("Incorrect","Invalid Username or Password")
  18. if PasswordLogin in DoctorPasswords:
  19. Doctors()
  20. else:
  21. messagebox.showerror("Incorrect","Invalid Username or Password")
  22.  
  23. def Users():
  24. global UserNameE
  25. global PasswordE
  26. global User_Type
  27. global UserGUI
  28. UserGUI = Tk()
  29. UserGUI.title ("Login")
  30. w, h = UserGUI.winfo_screenwidth(), UserGUI.winfo_screenheight()
  31. UserGUI.overrideredirect(1)
  32. UserGUI.geometry("%dx%d+0+0" % (w, h))
  33. UserDesc = Label(UserGUI, text = "User Type:",font = ("impact",25),width = 30).place(x = 355, y=332)
  34. UserName = Label(UserGUI, text = "Username:",font = ("impact",25),width = 30).place(x = 355, y=383)
  35. Password = Label(UserGUI, text = "Password:",font = ("impact",25),width = 30).place(x = 355, y=430)
  36. UserNameE = Entry(UserGUI, width = 30).place(x = 700, y=400)
  37. PasswordE = Entry(UserGUI, width = 30).place(x = 700, y=450)
  38. User_Type = Entry(UserGUI, width = 30).place(x = 700, y=350)
  39. Submit = Button(UserGUI, text="Login", command=Login, fg = "Black", font = ("impact",80)).place(x =1290, y=720)
  40. AdminBypass = Button(UserGUI, text="Admin", command=Doctors).place(x = 750, y=850)
  41. Exit = Button(UserGUI, text="Exit", command=Exit_Program, fg = "Black", font = ("impact",80)).place(x =0, y=720)
  42.  
  43.  
  44.  
  45. Doctors()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement