/src/wrappers/gtk/examples/entries/real_spin.e
http://github.com/tybor/Liberty · Specman e · 17 lines · 15 code · 2 blank · 0 comment · 0 complexity · 08206f8ca2b4513189d24c4d4d46197f MD5 · raw file
- class REAL_SPIN
- inherit GTK_SPIN_BUTTON rename make as make_spin redefine on_changed end
- creation make
- feature make is
- local adj: GTK_ADJUSTMENT
- do
- create adj.make (0.0,0.0, 100.0, 2.5, 10.0, 20.0)
- make_spin (adj, 1.5, 3)
- connect (Current, "changed", $on_changed)
- end
- on_changed is
- do
- print(value.out) print ("%% of non-Eiffel code%N")
- end
- end