Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
427 B
3
Indexable
Never
from tkinter import *
from tkinter import messagebox
a=Tk()
lb1=Label(a,text="Movie ticket",font=("Arial bold",15))
lb1.grid(column=1,row=0)
lb2=Label(a,text="Name")
lb2.grid(column=0,row=1)
lb3=Label(a,text="Movie")
lb3.grid(column=0,row=2)
lb4=Label(a,text="Tickets")
lb4.grid(column=0,row=3)
e1=Entry(a,width=15)
e1.grid(column=1,row=1)
movies=["RRR","KGF","PUSHPA"]
v1=StringVar()
d1=OptionMenu(a,v1,*movies)