TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
11.33k stars 1.07k forks source link

OptionMenu doesnt support integers #959

Open cfivek opened 1 year ago

cfivek commented 1 year ago

\Python\Python310\lib\site-packages\customtkinter\windows\widgets\core_widget_classes\dropdown_menu.py", line 100, in _add_menu_commands self.add_command(label=value.ljust(self._min_character_width), AttributeError: 'int' object has no attribute 'ljust'

values or variable doesnt support integers. You can get around it by making each int of the list into a string, and turn it back around afterwards if needed, but seems a bit hacky.

Thx for this project btw. It has replaced my other tkUI skin, its just as nice and more responsive.

IfTrueEqualsEqualsTrue commented 11 months ago

This issue doesnt seems to bothers me when working in the editor with a Venv.

Once my app is compiled in a .exe, this time it shows up ! Strange behavior.

JackFormeDev commented 8 months ago

I encountered the same error. I can try to work on it.