tkinter color of disabled buttons / disabled optionmenus

前端 未结 1 1824
执笔经年
执笔经年 2021-01-15 03:44

I am working on a quicklist editor for Unity (Ubuntu). The (initial) interface contains both disabled optionmenu buttons (right down, the \"+\", and the edit button, upper r

1条回答
  •  醉梦人生
    2021-01-15 04:03

    ....It turns out there is no other solution than, instead of using the DISABLED state, replacing the button with another image with no button functionality at all, for as long as the button is meant to be disabled. Although it takes a few lines of extra coding, it also gives you the benefit of control on how the disabled button looks. At the same time, I think it is kind of a bug that disabled option buttons are of slightly different color than other disabled buttons.

    0 讨论(0)
提交回复
热议问题