root = Tk()
class app():
def __init__(self):
self.root = root
self.janela()
self.Checkbutton_tutorial()
# criando o Loop
root.mainloop()
def janela(self):
self.root.title("Cheklist")
self.root.configure(background='#B0C4DE')
self.root.geometry("350x250")
self.root.resizable(False, False)
def Checkbutton_tutorial(self):
self.Checkbutton1 = IntVar()
self.Checkbutton2 = IntVar()
self.Checkbutton3 = IntVar()
self.Checkbutton4 = IntVar()
self.Button1 = Checkbutton(root, text="Tomar Pequeno-Almoço",
variable=self.Checkbutton1,
onvalue=1,
offvalue=0)
self.Button1.place(relx=0.3,rely=0.1)
self.Button2 = Checkbutton(root, text="Tomar Banho",
variable=self.Checkbutton2,
onvalue=1,
offvalue=0)
self.Button2.place(relx=0.3, rely=0.2)
self.Button3 = Checkbutton(root, text="Tomar Almoço",
variable=self.Checkbutton3,
onvalue=1,
offvalue=0)
self.Button3.place(relx=0.3, rely=0.3)
self.Button4 = Checkbutton(root, text="Tomar Jantar",
variable=self.Checkbutton4,
onvalue=1,
offvalue=0)
self.Button4.place(relx=0.3, rely=0.4)
app()
Comentários
Enviar um comentário