What I want to do is to create a "Master Menu" by Tkinter in python. In that menu there would be like 2 or 3 buttons which will open new windows with different checklists etc. How can it be done? I was looking for solution for the last 2 hours and the only thing I got is creating new window with label. I don't know how to make python to open checklist in new Tkinter window. Can you help me?
I know that Tkinter.Toplevel() opens new window but how to "import" the previously created checklist into that window? Let's say I've got such list of things to do:
I know that Tkinter.Toplevel() opens new window but how to "import" the previously created checklist into that window? Let's say I've got such list of things to do:
software = ['MS Office', 'Drivers', 'Chrome', 'ESET']I did everything like you did in the code you gave me:
import Tkinter from Tkinter import * import tkMessageBox top = Tkinter.Tk() software = ['MS Office', 'Drivers', 'Chrome', 'ESET'] check_boxes_software = {item:IntVar() for item in software} def software(): if all(item.get() for item in check_boxes_software.values()): tkMessageBox.showinfo('Checklista Software', 'Wszystko gotowe!') else: tkMessageBox.showinfo('Checklista Software', 'Czegos brakuje!') for item in software: C = Checkbutton(top, text = item, variable = check_boxes_software[item], anchor = W, onvalue = 1, offvalue = 0, height=1, width=40) C.pack() B1 = Tkinter.Button(top, text ='Sprawdz', command = software) B1.pack() top.mainloop()How to make list above shows in another Tkinter window?