There is a work-around though: have two controls (say coarse and fine)
and then use the sum of those variables as the actual parameter.
As a stupid example:
<pre>
@interact
def stest(a = slider(0,3.14,.1,1.5), b = slider(0,.1,.01)):
sum_var = a + b
show(plot(lambda x: sin(x), 0, sum_var), xmin = 0, xmax = sum_var)
</pre>
On Sep 4, 1:50 pm, Jason Grout <[EMAIL PROTECTED]> wrote:
> kcrisman wrote:
> > Is it possible to create an @interact setup such that there are two
> > ways to specify the same input? That is, perhaps one wants to use the
> > slider to get close to a desired input, but then for fine-tuning
> > beyond the user's motor skill control (e.g. if there are hundreds of
> > slider steps), one could type into a text box. Obviously one would
> > change the other automatically; you couldn't have them be different.
>
> > As far as I can find, this seems impossible currently, but I may have
> > missed something so I am asking to make sure. Thanks for any
> > feedback; this is my first time using interact and I do appreciate the
> > documentation many examples.
>
> Right now I believe this is impossible. I think the easiest way to make
> it happen would be to create a new @interact control with both a slider
> and a text box, for example.
>
> Thanks,
>
> Jason
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---