Python tkinter padx ipadx

2022/05/08閱讀時間約 1 分鐘
  • Button attribute
button = tk.Button(root, text='text')
button.grid(row=0, column=0, padx=5, ipadx=5)
ipadx為 Button 框內的距離
padx為 Button 框外距離
  • Window attribute
root.overredirect(True)#隱藏放大縮小按鍵
root.attributes('-topmost', True)#顯示最上層
app.attributes('-alpha', 0.5)#透明度,1為不透明
為什麼會看到廣告
John
John
留言0
查看全部
發表第一個留言支持創作者!