Python Forum

Full Version: Get a range from GUI ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to make a widget like this:
[Image: 111.jpg]

Get a range from GUI via mouse(e.g. return (1, 3) or (16, 23)...), I try to use ttk.Scale(), but it can't set two sliders, which widget can do that?
which GUI package are you using?
What GUI software?

Are you looking for a scale like widget with two thumbs? I know of no widget like that. If you want to use scale you could use two scale widgets and put them together in a frame. I think I would use a Spinbox instead.
Yes, I already do that use two 'Scale' widget.
But if make two markers on same axis will more intuition than Spinbox, although it's image of idea. Smile

Capture from Audio editor:
[Image: 333.jpg]
(Jan-19-2021, 07:49 PM)Larz60+ Wrote: [ -> ]which GUI package are you using?

It's the question, the image only captue from other software, widget not implement currently.
Quote:Larz60+ Wrote:
which GUI package are you using?

Quote:you responde with:
It's the question, the image only captue from other software, widget not implement currently.

Quote:But in previous post you respond to Deanhystad:
Yes, I already do that use two 'Scale' widget.

If that's the case, you must be using some graphics package, Which one??
for instance tkinter, Qt5, Kivy, wxpython or something else.
Quote:If that's the case, you must be using some graphics package, Which one??
for instance tkinter, Qt5, Kivy, wxpython or something else.

I use two tkinter Scale to get value each, but not enough close the aim,
[Image: 333.jpg]

tkinter is my first option but not limited,
(because I grasp PyQt, Kivy, wxpython ... less than tkinter currently. Smile ,

tkinter seems can't implement this function, I looking for Kivy ...

By the way, can I upload image at this forum?
Quote:I use two tkinter Scale to get value each, but not enough close the aim,

tkinter was what I was looking for.
Kivy might do the trick, I haven't used it too much.

tkinter's not my favorite GUI package, but you should be able to modify the code to produce what you want with a couple of custom buttons. see:

Could you please show code, hard to help without.