按钮 无功能按钮 Button的text属性显示按钮上的文本 tkinter.Button(form, text='hello button').pack() 无论怎么变幻窗体大小,永远都在窗体的最上行的居中位置 点击触发事件 Button 的 command属性调用方法,来执行事件 例如有个方法 def a(): print ('已点击按钮') tkinter.Button(form, text='hello button',command=a).pack() 点击3次按钮,执行了3次 a方法