📅  最后修改于: 2022-03-11 14:45:06.463000             🧑  作者: Mango
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()