문제

Does anyone know if it is possible to have a single scale widget with two "sliders" from the tkinter module? Or anyway to fake it?

Such as (edited with GIMP):

enter image description here

I am thinking placing one scale on top of another scale, but with a transparent background?

도움이 되었습니까?

해결책

No, you cannot do this with the scale widget. You can't give it a transparent background and stack them.

If I had to implement this functionality, I would use a canvas widget and draw my own sliders. It's not very hard to do, but obviously it's going to be more work than an off-the-shelf widget.

다른 팁

Here is a custom widget using a canvas, made by MenxLi.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top