May-22-2017, 12:13 PM
So I've got this code (it's not full cuz everything repeats):
Thanks for response :)
from Tkinter import * import tkMessageBox import Tkinter top = Tkinter.Tk() top.wm_title("Checklist") CheckVar1 = IntVar() CheckVar2 = IntVar() C1 = Checkbutton(top, text = "Underwear", variable = CheckVar1, anchor = W, onvalue = 1, offvalue = 0, height=1, width = 40) C2 = Checkbutton(top, text = "T-shirts", variable = CheckVar2, anchor = W, onvalue = 1, offvalue = 0, height=1, width = 40) B1 = Tkinter.Button(top, text = "Sprawdz", command = confirm) C1.pack() C2.pack() B1.pack() top.mainloop()What I want to do is when I press the button "Sprawdz" it will check whether all checkboxes are marked as checked. Whether they are or not the message will appear in other gui window. How can I do that? I read something about those event handlers you mentioned above but I don't have any knowledge connected with IT and I couldn't find anything for "totally newbies".
Thanks for response :)