Open CyberCell8080 opened 1 year ago
You have to provide a minimal example to reproduce this error.
@TomSchimansky @demberto - Just wanted to say, I have come across this issue in developing my own project. But in the end, I did get the StringVar passed to my class properly. My class inherited from CTkScrollableFrame
and took a StringVar
as an argument (in the __init__
method).
You can see this here
@dishb why am I getting pinged?
@dishb why am I getting pinged?
Oh I'm sorry- I must've been an accident 😅
This error message indicates that there is an issue with the customtkinter.CTkOptionMenu class. It seems that the CTkOptionMenu class is not properly handling the StringVar object passed to it as an argument. This could be a bug in the customtkinter library. You may want to report this issue to the developers of the customtkinter library.
Traceback (most recent call last): File "D:\Dev\tinkermap.py", line 81, in tile_server_dropdown = customtkinter.CTkOptionMenu( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Dev\venv\Lib\site-packages\customtkinter\windows\widgets\ctk_optionmenu.py", line 48, in init super().init(master=master, bg_color=bg_color, width=width, height=height, kwargs) File "D:\Dev\venv\Lib\site-packages\customtkinter\windows\widgets\core_widget_classes\ctk_base_class.py", line 41, in init tkinter.Frame.init(self, master=master, width=width, height=height, pop_from_dict_by_set(kwargs, self._valid_tk_frame_attributes)) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64qbz5n2kfra8p0\Lib\tkinter\init.py", line 3190, in init Widget.init(self, master, 'frame', cnf, {}, extra) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64qbz5n2kfra8p0\Lib\tkinter__init.py", line 2628, in init__ self.tk.call( _tkinter.TclError: bad screen distance "PY_VAR0"