Posts: 26
Threads: 15
Joined: Oct 2020
Jan-19-2021, 05:55 PM
I want to make a widget like this:
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?
Posts: 12,027
Threads: 485
Joined: Sep 2016
which GUI package are you using?
Posts: 6,780
Threads: 20
Joined: Feb 2020
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.
Posts: 26
Threads: 15
Joined: Oct 2020
Jan-19-2021, 09:25 PM
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.
Capture from Audio editor:
Posts: 26
Threads: 15
Joined: Oct 2020
(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.
Posts: 12,027
Threads: 485
Joined: Sep 2016
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.
Posts: 26
Threads: 15
Joined: Oct 2020
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,
tkinter is my first option but not limited,
(because I grasp PyQt, Kivy, wxpython ... less than tkinter currently.  ,
tkinter seems can't implement this function, I looking for Kivy ...
By the way, can I upload image at this forum?
Posts: 12,027
Threads: 485
Joined: Sep 2016
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.
|