-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogram_11.py
More file actions
30 lines (22 loc) · 833 Bytes
/
program_11.py
File metadata and controls
30 lines (22 loc) · 833 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
from tkinter import *
root=Tk()
def getvals():
print(f'value of name is {userentry.get()}')
print(f'value of age is {passwordentry.get()}')
root.geometry('656x500')
Label(root,text="welcome to bhavya's land",font='comicsansms 13 bold',pady=15).grid(row=0,column=13)
username=Label(root,text='Username')
password=Label(root,text='Password')
username.grid(row=1,column=3)
password.grid(row=2,column=3)
uservalue=StringVar()
passwordvalue=StringVar()
ready=IntVar()
userentry=Entry(root,textvariable=uservalue)
passwordentry=Entry(root,textvariable=passwordvalue,show='*')
userentry.grid(row=1,column=4)
passwordentry.grid(row=2,column=4)
ready_value=Checkbutton(text="want to prebook your meals",variable=ready)
ready_value.grid(row=6,column=3)
Button(text='submit',command=getvals).grid(row=7,column=3)
root.mainloop()