Advertisement
kacperthesexy

Untitled

Jul 8th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. try:
  2. import Tkinter as tk
  3. except ImportError:
  4. import tkinter as tk
  5.  
  6. w = 225
  7. h = 150
  8. x = 50
  9. y = 100
  10.  
  11.  
  12. window = tk.Tk()
  13. window.title("Register")
  14.  
  15. window.geometry("%dx%d+%d+%d" % (w, h, x, y))
  16.  
  17. L1 = tk.Label(window, text="Username:")
  18. L1.place(x=1, y=20)
  19. x
  20. E1 = tk.Entry(window)
  21. E1.place(x=75,y=20)
  22.  
  23. L2 = tk.Label(window, text="Password:")
  24. L2.place(x=1, y=60)
  25.  
  26. E2 = tk.Entry(window)
  27. E2.place(x=75, y=60)
  28.  
  29. button = tk.Button(window, text="Register")
  30. button.place(x=75, y=100)
  31.  
  32. window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement