构建tkinter应用程序的最佳方法?
def funA(): def funA1(): def funA12(): # stuff def funA2(): # stuffdef funB(): def funB1(): # stuff def funB2(): # stuffdef funC(): def funC1(): # stuff def funC2(): # stuffroot = tk.Tk()button1 = tk.Button(root, command=funA)button1.pack()button2 = tk.Button(root, command=funB)button2. pack()button3 = tk.Button(root, command=funC)button3.pack()
funA
funB
funC
Toplevel
相关分类