TomSchimansky / CustomTkinter

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

If statement missing in scrollbar #2290

Open bomtvedt4 opened 4 months ago

bomtvedt4 commented 4 months ago

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

AshhadDevLab commented 4 months ago

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:

  1. border_spacing
  2. corner_radius
  3. command
  4. hover
  5. fg_color
  6. button_color
  7. 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 😁