Closed avalon60 closed 2 years ago
Thats a mistake in the documentation, the optionmenu has no attribute border_width. I decided not to have it, because with a border, the optionemnu would look the same as a combobox and you couldn't distinguish between them...
Ah... OK Tom, thanks. I also notice that the CTk() widget fails with "bg_color=" but that "bg=" works fine. Is this a docs issue?
The CTk has no bg_color just an fg_color. Because the fg_color is always the main foreground color, and the bg_color is the color of the element behind the widget. So the window has no bg_color because there's nothing behind it. But I mapped the bg and background arguments to fg_color in the beginning, because people are used to do it like this in tkinter. But I think I will remove them now and just use fg_color as the only valid argument to configure the window color.
Adding a border to a CTkOptmenu widget, results in an error. This can be demonstrated, by taking the simple_example.py and changing the code, thus:
optionmenu_1 = customtkinter.CTkOptionMenu(frame_1, border_width=1, values=["Option 1", "Option 2", "Option 42 long long long..."])
Error stack: