Professional Documents
Culture Documents
Tenerife, John Lenard O. BSIT 3Y2-2
Tenerife, John Lenard O. BSIT 3Y2-2
BSIT 3Y2-2
from tkinter import *
import tkinter.messagebox as box
window = Tk()
window.title('BIO')
frame = Frame(window)
lab1 = Label(window, text="Lastname")
lab1.pack(padx=13, pady=5)
ent1 = Entry(window, bd=4)
ent1.pack(padx=13, pady=5)
lab2 = Label(window, text="Firstname")
lab2.pack(padx=13, pady=5)
ent2 = Entry(window, bd=4)
ent2.pack(padx=13, pady=5)
lab3 = Label(window, text="Middlename")
lab3.pack(padx=13, pady=5)
ent3 = Entry(window, bd=4)
ent3.pack(padx=13, pady=5)
rad1 = Radiobutton(window, text="Male", value=1)
rad1.pack(side=LEFT, padx=13, pady=5)
rad2 = Radiobutton(window, text="Female", value=2)
rad2.pack(side=LEFT, padx=13, pady=5)
rad3 = Radiobutton(window, text="LGBTQ", value=3)
rad3.pack(side=LEFT, padx=13, pady=5)
Checkbox1 = Checkbutton(window, text="Playing Sports",
onvalue=True, offvalue=False)
Checkbox1.pack(padx=13, pady=5)
Checkbox2 = Checkbutton(window, text="Singing/Dancing",
onvalue=True, offvalue=False)
Checkbox2.pack(padx=13, pady=5)
Checkbox3 = Checkbutton(window, text="Gardening",
onvalue=True, offvalue=False)
Checkbox3.pack(padx=13, pady=5)
Checkbox4 = Checkbutton(window, text="Pet Caring",
onvalue=True, offvalue=False)
Checkbox4.pack(padx=13, pady=5)
Checkbox5 = Checkbutton(window, text="Reading Books",
onvalue=True, offvalue=False)
Checkbox5.pack(padx=13, pady=5)
Button1 = Button(frame, text='ADD')
Button1.pack(side=LEFT, padx=13, pady=5)
Button2 = Button(frame, text='UPDATE')
Button2.pack(side=LEFT, padx=13, pady=5)
Button3 = Button(frame, text='DELETE')
Button3.pack(side=LEFT, padx=13, pady=5)
frame.pack(padx=100, pady=20)
window.mainloop()
I learned how to use proper labeling and some of the buttons that needed to be use in the given
problem aside from that, I learned about using Radiobuttons which is taught to us the last time. But on
making this solution, there are some of the problems that I cannot solved.