Onlyjus
Onlyjus

Reputation: 6159

tkinter scale with two sliders?

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?

Upvotes: 11

Views: 6236

Answers (3)

Akascape
Akascape

Reputation: 542

I think this might work: Range Slider Module

You can see how it looks,

My screenshot

Upvotes: 0

nda
nda

Reputation: 561

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

Upvotes: 4

Bryan Oakley
Bryan Oakley

Reputation: 386210

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.

Upvotes: 4

Related Questions