简体   繁体   中英

How do I stop a disabled tkinter button from being greyed out?

Basically, I've got a tkinter button with an image on it, and when I disable the button it greys out a square around the image and looks pretty bad. Is there any way to stop this from happening while keeping the button disabled?

您可以取消绑定回调,而不是禁用按钮:

button['command']=0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM