Closed TotalHelix closed 4 months ago
For scrollbars on a CTkTextbox in CustomTkinter, you need to set the activate_scrollbars parameter during the widget's initialization. This parameter cannot be changed afterward using the .configure() method.
`import customtkinter as ctk
root = ctk.CTk() textbox = ctk.CTkTextbox(root) textbox.pack()
root.mainloop()`
that should work in making what you wanted unless i am misunderstanding the problem
In my full program, the scrollbar state is configured later depending on other inputs, but I was able to find a workaround by creating a new textbox each tim I need to change it. My main question is what property of scrollbars or textboxes prevents them from being configured?
When trying to use .configure() on a CTkTextbox to disable or enable the scrollbars, CustomTkinter raises an error saying that it isn't a valid argument.
Code to replicate:
Output:
If this is intentional, could someone please explain why this doesn't or can't work?