from tkinter import * wow = Tk() def ree(hi): print(hi) w = Button ( master=wow, command=ree('hi'), text="hi" ) Output: Tkinter: ______ [ hi ] <--- Button ...
確定! 回上一頁