CustomTkinter
CustomTkinter copied to clipboard
If statement missing in scrollbar
Hello,
I have been trying to implement a scroll bar into one of my projects but it kept returning this error. "ValueError: ['orientation'] are not supported arguments. Look at the documentation for supported arguments."
Looks like in the ctk_scrollbar function "def configure(self, require_redraw=False, **kwargs), 'orientation' is not listed in the if statements.
Thanks
That's true the configure function in the scrollbar doesn't support the changing of the scroll direction, by default the scroll direction is set to vertical but it can be changed only at the time of the creation of the scrollbar and not after creating.
That means configure()
can't change the orientation of the scrollbar, the only configurable arguments are:
-
border_spacing
-
corner_radius
-
command
-
hover
-
fg_color
-
button_color
-
button_hover_color
Although if you want you can create a pull request and implement the logic in that or I'll do that if I have time 😁