Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
1.3 kB
4
Indexable
Never
import tkinter as tk

window = tk.Tk()

frame_a = tk.Frame()
window.title("House Event Calculator")

EventNameLabel= tk.Label(master=frame_a, text="Event Name")
EventNameLabel.pack()

EventEntry = tk.Entry(master=frame_a)
EventEntry.pack()

EventTypeLabel = tk.Label(master=frame_a, text="Is your event a sport?")
rad1 = Radiobutton (window,text='First', value=1)

rad2 = Radiobutton(window,text='Second', value=2)

rad3 = Radiobutton(window,text='Third', value=3)

rad1.grid(column=0, row=0)

rad2.grid(column=1, row=0)

rad3.grid(column=2, row=0)
EventTypeLabel.pack()

RedPointsEntry = tk.Entry (master=frame_a)
RedPointsEntry.pack()
Redlabel=tk.Label(master=frame_a,text= "Red House Points")
Redlabel.pack()

YellowPointsEntry = tk.Entry(master=frame_a)
YellowPointsEntry.pack()
Yellowlabel=tk.Label(master=frame_a,text= "Yellow House Points")
Yellowlabel.pack()

GreenPointsEntry = tk.Entry(master=frame_a)
GreenPointsEntry.pack()
Greenlabel=tk.Label(master=frame_a,text= "Green House Points")
Greenlabel.pack()

BluePointsEntry = tk.Entry(master=frame_a)
BluePointsEntry.pack()
Bluelabel=tk.Label(master=frame_a, text="Blue House Points")
Bluelabel.pack()

SubmitButton = tk.Button(master=frame_a, text="Submit")
SubmitButton.pack()

#DO NOT TOUCH
frame_a.pack()
window.mainloop()