Closed Bonifatius94 closed 1 year ago
@Bonifatius94 I had the same issue. You can solve it by specifying the proposed padX.
lower = tk.DoubleVar(frame, 0.0)
upper = tk.DoubleVar(frame, 1.0)
slider = RangeSliderH(frame, [lower, upper], padX=11)
frame.pack(fill="x")
slider.grid(row=0, column=3)
Hey @Bonifatius94 I hope your problem was resolved, as nicely answered by @PetervanLunteren . The widget requires a minimum padding based on font size and handle size in order to properly show the current position/value of handle. The aforementioned padding is quantified using an optional variable padX and padY for RangeSliderH and RangeSliderV respectively. Thank you @PetervanLunteren for your answer.
Thanks for your reply. I ended up using another approach to structure my UI. But yeah, good to know how to make the slider work. Maybe I'll use it next time :smile:
Thanks for your reply @Bonifatius94 and your comments about the widget. Since, nothing remains to be discussed in this issue, closing it.
Hi @harshvinay752, thank you for providing this much needed Tkinter widget!
I'm encountering a rendering issue, though. When using pack() or grid(), I get this error message.
I use your range slider like this:
Thanks for your help in advance. I'll let you know in case I figure it out myself.
Best wishes, Marco