range slider

hi

i would like to create a slider that allows to select a range (min and max), with two thumbs. I am wondering if that can be created using wxpython. I attach an image of this kind of slider used in a music application, so that yo get a better idea. Both thubms work independently but they cannot go over each other (when dragged the min thumb wont go further than the max thumb and the max wont go less than the min)

I guess it is possible but i am not yet so familiar with wxpython to know how to go about it. Any tips would be welcome. Maybe using to sliders on top of each other? or maybe it would be better to build something from scratch?

thanks!

enrike

rangesliders.gif

Hi Enrike,

I guess it is possible but i am not yet so familiar with wxpython to
know how to go about it. Any tips would be welcome. Maybe using to
sliders on top of each other? or maybe it would be better to build
something from scratch?

It will be quite complicated to do it with 2 sliders on top of each
other, in my opinion. Native controls do not offer *all* the
possibilities. You could have more luck in building a custom control
yourself: this is often seen as a complex task, but it is not that
much complicated. If you are looking for some hints in building custom
controls, take a look at the Wiki here:

http://wiki.wxpython.org/index.cgi/CreatingCustomControls

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

ยทยทยท

On 1/10/07, altern <altern2@gmail.com> wrote: