CustomTkinter
CustomTkinter copied to clipboard
CTkProgressBar.configure(corner_radius=) causes exception
CustomTkinter 4.6.3
Adding this third line, to simple_example.py, causes the exception:
progressbar_1 = customtkinter.CTkProgressBar(master=frame_1)
progressbar_1.pack(pady=12, padx=10)
progressbar_1.configure(corner_radius=0)
Exception raised:
File "/home/clive/PycharmProjects/customtk/simple_example.py", line 37, in <module>
progressbar_1.configure(corner_radius=0)
File "/home/clive/PycharmProjects/customtk/venv/lib/python3.8/site-packages/customtkinter/widgets/ctk_progressbar.py", line 166, in configure
super().configure(require_redraw=require_redraw, **kwargs)
File "/home/clive/PycharmProjects/customtk/venv/lib/python3.8/site-packages/customtkinter/widgets/widget_base_class.py", line 131, in configure
super().configure(**kwargs)
File "/usr/lib/python3.8/tkinter/__init__.py", line 1646, in configure
return self._configure('configure', cnf, kw)
File "/usr/lib/python3.8/tkinter/__init__.py", line 1636, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: unknown option "-corner_radius"
@avalon60 Same goes with progressbar. Corner_radius is not added in the configure settings: https://github.com/TomSchimansky/CustomTkinter/blob/master/customtkinter/widgets/ctk_progressbar.py#L147
For these we have to use progressbar_1.corner_radius=0 in order to change it.
Fixed with version 5.0.0.