Thanks for choosing Sage!  You may be interested in letting us know
where you're located etc.

At this point, I do not believe one can make selectors depend on each
other.  That said, the feature has been requested before (actually, a
slightly different one), and we are tracking the issue here:

http://trac.sagemath.org/sage_trac/ticket/3836

Please let us know if you find something that does work for this!
Good luck.

- kcrisman

On Oct 21, 7:51 am, Firephoenix <gmrc.king...@gmail.com> wrote:
> Hi, first time here. First of all i want to point out that we've been
> using Sage in our University for some math subjects and it's a great
> math program, really helps a lot. But now i'm trying to go a little
> beyond the basics that we use everyday and try to do something more
> like a "program".
> I want to know if there is any way to "create" new buttons while
> already in execution.
> This is a testing code i wrote (of course, just for testing
> purposes :P)
>
> @interact
> def _(n1=input_box(0,label='Testing', type=int),a=selector([1,2,7],
> buttons=True), n2=input_box(1,label='Testing2',type=int),
> juega=input_box(0,label='Testing3',type=int)):
>     if(n1>0):
>         print 'hi'
>         another_function()
>
> def another_function(t1=input_box(0,label='Testing123')):
>     print 'hola'
>
> Thing is, when i run it, i can get it to print 'Hola' but no input_box
> is created again. I've managed to "make" one using html, but i can't
> get to "interact" with it.
> What i'm thinking on doing is a program that has several options using
> a selector, e.g. if you choose 1 then it should appear a grid so that
> when u enter matrix values it does some calcs, if you choose 2 then it
> should appear an input box, and so on...
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to