CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

CTkComboBox background became white when state is "readonly"

Open ManHinnn0509 opened this issue 2 years ago • 1 comments

Thank you for creating this lib.

The background color of CTkComboBox() became white when the state is setted to "readonly" customtkinter version: 4.6.3

img

ManHinnn0509 avatar Sep 19 '22 11:09 ManHinnn0509

I found a solution to this issue, there's a readonlybackground parameter in tk.Entry() and you can use configure() to change to color of the entry.

Example code:

self.comboBox.entry.configure(readonlybackground="#00ff00")

Solution from: https://stackoverflow.com/questions/28973756/tk-entry-background-color-change-in-readonly-mode

ManHinnn0509 avatar Sep 19 '22 18:09 ManHinnn0509

Should be resolved with version 5.0.0.

TomSchimansky avatar Dec 02 '22 22:12 TomSchimansky

image

5.0.3 still has the bug

FerumFist avatar Sep 27 '23 13:09 FerumFist