Guest User

Untitled

a guest
Mar 13th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. from tkinter import*
  2. def launch():
  3. exec(open("C:/Users/Yashwant/PycharmProjects/BestProject/NewHome.py").read(), globals())
  4.  
  5. root = Tk()
  6. root.title('Bestappever')
  7. frame = Frame(root)
  8. Label1 = Label(root,text = 'Username:')
  9. Label1.pack(padx=15,pady= 5)
  10. entry1 = Entry(root,bd =5)
  11. entry1.pack(padx=15, pady=5)
  12. username = entry1.get()
  13. Label2 = Label(root,text = 'Password: ')
  14. Label2.pack(padx = 15,pady=6)
  15. entry2 = Entry(root, bd=5)
  16. entry2.pack(padx = 15,pady=7)
  17. password = entry2.get()
  18. btn = Button(frame, text = 'Check Login',command = launch)
  19. btn.pack(side = RIGHT , padx =5)
  20. frame.pack(padx=100,pady = 19)
  21. root.mainloop()
Add Comment
Please, Sign In to add comment