1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| from tkinter import *
fenetre = Tk()
label.pack()
assault = IntVar()
aztec = IntVar()
cache = IntVar()
canals = IntVar()
case1 = Checkbutton(fenetre, text="Assault", variable=assault).grid(row=1, sticky=W)
case2 = Checkbutton(fenetre, text="Aztec", variable=aztec).grid(row=2, sticky=W)
case3 = Checkbutton(fenetre, text="Cache", variable=cache).grid(row=3, sticky=W)
case4 = Checkbutton(fenetre, text="Canals", variable=canals).grid(row=4, sticky=W)
bouton = Button(fenetre, text="Appliquer", command=fenetre.quit).grid(row=5, sticky=W)
fenetre.mainloop()
a = assault.get() |
Partager