Perl/Tk: -textvariable => \$variable
-textvariable => varRef
Ruby: ref = TkVariable.new
'textvariable' => ref
{ textvariable ref }
|
Use
TkVariable
to attach a Ruby variable to a widget's value.
You can then use the
value
accessors in
TkVariable
(
TkVariable#value
and
TkVariable#value=
) to
affect the contents of the widget directly.