CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

Add readonlybackground to CTkComboBox

Open Kippey opened this issue 3 years ago • 6 comments

The background on readonly ComboBoxes won't change off of white. Adding a readonlybackground argument would be helpful.

image Highlighting the text: image

Kippey avatar Dec 05 '22 02:12 Kippey

Do you use the newest customtkinter version?

TomSchimansky avatar Dec 05 '22 10:12 TomSchimansky

I do use version 5.0.1 and this issue still occurs.

Kippey avatar Dec 06 '22 01:12 Kippey

seems to be a windows problem. On macOS everything works fine for me. If i run the exact same code on windows tho, the issue occurs.

zer0-0xyg3n avatar Dec 07 '22 16:12 zer0-0xyg3n

Will it be updated in the future? I love customtkinter but this one little bug is irritating.

Kippey avatar Dec 07 '22 23:12 Kippey

A workaround I found was using:

combobox = customtkinter.CTkComboBox()
combobox._entry.configure(readonlybackground="color")

Which configures the tkinter.Entry packaged into the CTkComboBox object.

pelpadesa avatar Dec 12 '22 12:12 pelpadesa

A workaround I found was using:

combobox = customtkinter.CTkComboBox()
combobox._entry.configure(readonlybackground="color")

Which configures the tkinter.Entry packaged into the CTkComboBox object.

Thanks this worked.

Kippey avatar Dec 13 '22 01:12 Kippey