Guest User

Untitled

a guest
Mar 3rd, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. from tkinter import *
  2.  
  3. class Register:
  4.  
  5. def __init__(self,master):
  6. f = Frame(master, height =350,width = 600)
  7. f.propagate(0)
  8. f.pack()
  9. #-----------------------Labels----------------------
  10. self.name = Label(text = "First Name : ")
  11. self.lname = Label(text = "Last name : ")
  12. self.email = Label(text = "Email id : ")
  13. self.uname = Label(text = "Username :")
  14. self.pw = Label(text = "Enter password : ")
  15. self.cpw = Label(text = "Confirm password : ")
  16.  
  17. #----------------------Textboxes----------------------
  18. self.tname = Entry(f, width=30)
  19. self.tlname = Entry(f, width=30)
  20. self.temail = Entry(f, width=30)
  21. self.tuname = Entry(f, width=30)
  22. self.tpw = Entry(f, width=30)
  23. self.tcpw = Entry(f, width=30)
  24.  
  25. #----------------------Button-------------------------
  26. self.submit = Button(f, text="Submit",command = self.c_submit)
  27. self.cancel = Button(f, text="Cancel",command = self.c_cancel)
  28.  
  29.  
  30. #----------------------Position----------------------
  31. self.name.place(x=50 ,y=100)
  32. self.tname.place(x=150 ,y=100)
  33. self.lname.place(x=50 ,y=150)
  34. self.tlname.place(x=150 ,y=150)
  35. self.email.place(x=50 ,y=200)
  36. self.temail.place(x=150 ,y=200)
  37. self.uname.place(x=50 ,y=250)
  38. self.tuname.place(x=150 ,y=250)
  39. self.pw.place(x=50 ,y=300)
  40. self.tpw.place(x=150 ,y=300)
  41. self.cpw.place(x=50 ,y=350)
  42. self.tcpw.place(x=150 ,y=350)
Add Comment
Please, Sign In to add comment