Hi.

I'm new to ruby and used to Tcl/Tk.

Is it possible using Ruby/Tk to create widgets, then view and 
interactivly interact with them, then change their behavior and view and 
interact again with them. For example in Tcl/Tk shell (wish):

%  button .b -command {puts $globVar}
..b
% pack .b
% set globVar 1
1

Click on button displays 1

% set globVar 2
2

Click on button displays 2

% .b configure -command {puts $globVar$globVar}

Click on button displays 22



Is there a similar command sequence for Ruby/Tk.

I guess this is not possible, since for Tcl/Tk the event loop is started 
when the shell is started while for irb it is started only after _full_ 
widgets settings.


Nicolas.