1 description "A tour of wx boxes"
2 author "laurent.guigues@creatis.insa-lyon.fr"
6 #==================================================================
8 print "===================================================="
9 print "A Slider whose output is plugged into an OutputText"
14 # Make it signal it has changed when it is moved (not only released)
15 set slider.ReactiveOnTrack 1
16 # Create the OutputText
21 set main.WinDialog true
23 # Setting up the Layout :
24 connect slider.Widget main.Widget1
25 connect text.Widget main.Widget2
27 # The output of the slider is plugged into the input of the text
28 # To do this, we must have an int to string adaptor, hence load std
30 connect slider.Out text.In
32 # Any change of the slider must update the text
33 connect slider.BoxChange text.BoxExecute
38 #==================================================================
42 print "===================================================="
43 print "Splitting a window into two adjustable parts"
44 #==================================================================
48 set main.WinDialog true
52 #==================================================================
55 #==================================================================