Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: Jacob Mahto
Added: Jul 3, 2018 6:01 AM
Modified: Jul 3, 2018 6:17 AM
Views: 17
Tags: no tags
  1. from tkinter import *
  2. import os
  3.  
  4. root = Tk()
  5. root.title('Login')
  6.  
  7. intruction = Label(root, text='Please Login\n')
  8. intruction.grid(sticky=E)
  9.  
  10. nameL = Label(root, text='Username: ')
  11. pwordL = Label(root, text='Password: ')
  12. nameL.grid(row=1, sticky=W)
  13. pwordL.grid(row=2, sticky=W)
  14.  
  15. name = Entry(root)
  16. pword = Entry(root, show='*')
  17. name.grid(row=1, column=1)
  18. pword.grid(row=2, column=1)
  19.  
  20. loginBtn = Button(root, text='Click here')
  21. loginBtn.grid(columnspan=2, sticky=W)
  22. root.mainloop()  
  23.    
  24.