Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Login:
- def __init__(self):
- Label1 = Label(root,text = "Username")
- Label2 = Label(root,text = "Password")
- self.Entry1 = Entry(root)
- self.Entry2 = Entry(root,show = "*")
- Label1.grid(row=0)
- Label2.grid(row=1)
- self.Entry1.grid(row = 0,column = 1)
- self.Entry2.grid(row = 1,column = 1)
- root.minsize(width = 300,height = 80)
- ##new_window_button = Button(text="new window", command = ????)
- ##new_window_button.grid(columnspan = 2)
- lgbutton = Button(text = "Login",command = self.ButtonClicked)
- lgbutton.grid(columnspan = 2)
- def ButtonClicked(self):
- username = self.Entry1.get()
- password = self.Entry2.get()
- GetDatabase(username,password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement