📜  ttk 按钮 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:06.463000             🧑  作者: Mango

代码示例1
buttonA = ttk.Button(self, text="page one", command=lambda: controller.show_frame(pageOne))
buttonA.pack()

def my_function() :
    print("foobar")
buttonB = ttk.Button(self, text="print", command=my_function)
buttonB.pack()