Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import*
- def launch():
- exec(open("C:/Users/Yashwant/PycharmProjects/BestProject/NewHome.py").read(), globals())
- root = Tk()
- root.title('Bestappever')
- frame = Frame(root)
- Label1 = Label(root,text = 'Username:')
- Label1.pack(padx=15,pady= 5)
- entry1 = Entry(root,bd =5)
- entry1.pack(padx=15, pady=5)
- username = entry1.get()
- Label2 = Label(root,text = 'Password: ')
- Label2.pack(padx = 15,pady=6)
- entry2 = Entry(root, bd=5)
- entry2.pack(padx = 15,pady=7)
- password = entry2.get()
- btn = Button(frame, text = 'Check Login',command = launch)
- btn.pack(side = RIGHT , padx =5)
- frame.pack(padx=100,pady = 19)
- root.mainloop()
Add Comment
Please, Sign In to add comment