2022-05-08|閱讀時間 ‧ 約 1 分鐘

Python tkinter padx ipadx

  • 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為不透明
分享至
成為作者繼續創作的動力吧!
從 Google News 追蹤更多 vocus 的最新精選內容從 Google News 追蹤更多 vocus 的最新精選內容

發表回應

成為會員 後即可發表留言