KeyError (Note that I am using a custom theme for dark purple-blue) #2061
Unanswered
Muhammad-Yusr
asked this question in
Q&A
Replies: 1 comment
-
|
@MoYusr Check the spellings properly, the b in box is in upper case. Your Code: Correction: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
File "D:\Folders\Programming\Python Projects\UI-based\Task Manager\main.py", line 49, in
checkbox = ck.CTkCheckBox(entry_tab, text="Insert Mode", variable=insert_mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ADMIN\AppData\Roaming\Python\Python311\site-packages\customtkinter\windows\widgets\ctk_checkbox.py", line 54, in init
self._fg_color = ThemeManager.theme["CTkCheckbox"]["fg_color"] if fg_color is None else self._check_color_type(fg_color)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'CTkCheckbox'
Customtkinter setup:

JSON file checkbox part:

and yes the path is correct it worked for other objects like buttons and labels
Beta Was this translation helpful? Give feedback.
All reactions