#3836: notebook interact -- make it so one control can depend on others
---------------------------+------------------------------------------------
   Reporter:  was          |       Owner:  itolkov 
       Type:  enhancement  |      Status:  new     
   Priority:  major        |   Milestone:  sage-4.2
  Component:  interact     |    Keywords:          
Work_issues:               |      Author:          
   Reviewer:               |      Merged:          
---------------------------+------------------------------------------------

Comment(by kcrisman):

 Here is another request from [http://groups.google.com/group/sage-
 
support/browse_thread/thread/a0292dca53c3be16/682f8ae33df29761?show_docid=682f8ae33df29761
 sage-support] which seems very similar.

 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...

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3836#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to