TomSchimansky / CustomTkinter

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

CTk 5.2.0: Exception encountered when configuring CTkSlider, button_corner_radius #1790

Open avalon60 opened 1 year ago

avalon60 commented 1 year ago

The CTkSlider widget does not support the button_corner_radius. From slightly modified complex_example.py:

/usr/bin/python3.10 /home/clive/PycharmProjects/research/complex_example.py 
Traceback (most recent call last):
  File "/home/clive/PycharmProjects/research/complex_example.py", line 165, in <module>
    app = App()
  File "/home/clive/PycharmProjects/research/complex_example.py", line 103, in __init__
    self.slider_1.configure(button_corner_radius=0)
  File "/home/clive/.local/lib/python3.10/site-packages/customtkinter/windows/widgets/ctk_slider.py", line 258, in configure
    super().configure(require_redraw=require_redraw, **kwargs)
  File "/home/clive/.local/lib/python3.10/site-packages/customtkinter/windows/widgets/core_widget_classes/ctk_base_class.py", line 133, in configure
    check_kwargs_empty(kwargs, raise_error=True)
  File "/home/clive/.local/lib/python3.10/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: ['button_corner_radius'] are not supported arguments. Look at the documentation for supported arguments.
ghost commented 1 year ago

@avalon60 - Could you try again? Looks like Tom introduced a fix in 9cfd5f4

avalon60 commented 1 year ago

@dishb what release would this be in?

ghost commented 1 year ago

No idea, might be a while until more changes are introduced (some that need to be major).

Adding more people with the Maintainer role would mean more people could close PRs and merge them. I'd still leave releases up to Tom. Unfortunately, making people Maintainers does have its risks...