📜  画布上的按钮 tkinter - Python 代码示例

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

代码示例1
# ... snip ...
button1 = Button(self, text = "Quit", command = self.quit, anchor = W)
button1.configure(width = 10, activebackground = "#33B5E5", relief = FLAT)
button1_window = canvas1.create_window(10, 10, anchor=NW, window=button1)