CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

ValueError: ['text_font'] are not supported arguments

Open svn-josh opened this issue 2 years ago • 3 comments

I Upgraded from 4.6.3 to the newest Version an get the following Error: (I also tried Installing 5.0.0 to 5.0.3)

PS H:\06 Coding\VsCodeProjekts\FiLoS\v2.2.1> & C:/Users/werner/AppData/Local/Programs/Python/Python311/python.exe "h:/06 Coding/VsCodeProjekts/FiLoS/v2.2.1/filos.py" Traceback (most recent call last): File "h:\06 Coding\VsCodeProjekts\FiLoS\v2.2.1\filos.py", line 281, in app = App() ^^^^^ File "h:\06 Coding\VsCodeProjekts\FiLoS\v2.2.1\filos.py", line 97, in init self.label_1 = customtkinter.CTkButton(master=self.frame_left, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\werner\AppData\Local\Programs\Python\Python311\Lib\site-packages\customtkinter\windows\widgets\ctk_button.py", line 52, in init super().init(master=master, bg_color=bg_color, width=width, height=height, **kwargs) File "C:\Users\werner\AppData\Local\Programs\Python\Python311\Lib\site-packages\customtkinter\windows\widgets\core_widget_classes\ctk_base_class.py", line 48, in init check_kwargs_empty(kwargs, raise_error=True) File "C:\Users\werner\AppData\Local\Programs\Python\Python311\Lib\site-packages\customtkinter\windows\widgets\utility\utility_functions.py", line 18, in check_kwargs_empty raise ValueError(f"{list(kwargs_dict.keys())} are not supported arguments. Look at the documentation for supported arguments.") ValueError: ['text_font'] are not supported arguments. Look at the documentation for supported arguments. PS H:\06 Coding\VsCodeProjekts\FiLoS\v2.2.1>

svn-josh avatar Dec 28 '22 14:12 svn-josh

@GermanYoshi Some parameter names were changed after the new update. replace the text_font parameter with font. You can see the full change log here: https://github.com/TomSchimansky/CustomTkinter/blob/master/CHANGELOG.md#changed

Akascape avatar Dec 28 '22 14:12 Akascape

@Akascape thanks

svn-josh avatar Dec 28 '22 14:12 svn-josh

cant...

svn-josh avatar Jan 03 '23 07:01 svn-josh