daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def user_login(window):
  2.     # some code to find whether valid or not. Valid: found = True
  3.     entry_value = entry_value.get()
  4.     if found:
  5.         messagebox.showinfo(title='Successful login',
  6.                             message='Valid password. Welcome to 7vinBB air traffic control system !')
  7.     else:
  8.         messagebox.showerror(title='Error',
  9.                              message='Invalid password. Please enter again. You have  ' + str(5-count1) + ' times left')
  10.  
  11. class LoginFrame(Frame):
  12.     def __init__(self, master):
  13.          super().__init__(master)
  14.          self.entry_value = entry(self,
  15.                                   font='Courier 17')
  16.          self.login_button = button(command=lambda: user_login(root))
  17.  
  18.          self.entry_value.place(x=330, y=245)      
  19.          self.login_button.place(x=440, y=420)
  20.  
  21.  root = Tk()
  22.  lf = LoginFrame(root)
  23.  root.mainloop()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top