-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path16_tk_1.py
More file actions
30 lines (24 loc) · 760 Bytes
/
Copy path16_tk_1.py
File metadata and controls
30 lines (24 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""
A Basic login page using tkinter.
"""
import tkinter as tk
print('I am a kind of user login created by Mr.Jha')
p = tk.Tk()
p.title('Login Page')
def fun():
print('You have login to Mr.Jha creation')
m = tk.Message(p, text='You have login to Mr.Jha creation')
m.pack(side='top')
print('I have made Mr.Jha login to make him understand about Tkinter ')
p.geometry('400x250')
l = tk.Label(p, text='Username')
l.place(x=30, y=50)
l1 = tk.Label(p, text='Password')
l1.place(x=30, y=100)
e = tk.Entry()
e.place(x=90, y=50)
e1 = tk.Entry()
e1.place(x=90, y=100)
s = tk.Button(p, text='Login', command=fun, fg='Red', bg='Yellow', activebackground='Pink', activeforeground='Green')
s.place(x=120, y=140)
p.mainloop()