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"
10 print "============================"
12 #==================================================================
17 # Make it signal it has changed when it is moved (not only released)
18 set slider.ReactiveOnTrack 1
19 # Create the OutputText
24 set main.WinDialog true
26 # Setting up the Layout
27 connect slider.Widget main.Widget1
28 connect text.Widget main.Widget2
30 #The output of the slider is plugged into the input of the text
31 #To do this, we must have an int to string adaptor, hence load std
33 connect slider.Out text.In
35 # Any change of the slider must update the text
36 connect slider.BoxChange text.BoxExecute
41 #==================================================================
45 print "============================"
46 print "Splitting a window into two adjustable parts"
47 print "============================"
49 #==================================================================
55 connect slider1.Widget main.Widget1
56 connect slider2.Widget main.Widget2
57 set main.Proportion 75
58 set main.Orientation Horizontal
59 set main.WinDialog true
62 #==================================================================
65 #==================================================================