In this post, we will see how to resolve python tkinter updating the combo box programmatically
Question:
When I print the list that I am setting the Combobox to I am getting an updated list based on the available com ports, however the values in the drop down box are not working. I have a feeling that it is because I am using customtkinter…. I really hope not. Does anyone see what is happening here?Best Answer:
It’s a bug in CustomTkinter library. You can useconfigure()
instead of __setitem__
like this.configure()
methods of the CTk widgets do not conform to the convention of the tkinter base class, as you can see in this and this.If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com