TkEntry - how do I read/capture what was typed?

I know how to create an TKentry field but I cannot figure out how to
capture what was typed......anybody have worked out examples?

···

--
Posted via http://www.ruby-forum.com/.

You must associate a Tk variable object to your Entry field :

@myVar = TkVariable.new
@myEntryField.textvariable(@myVar)
...
@myEntry = @myVar.value

Examples of tk programming here :
http://www.ugcs.caltech.edu/~rise/tk-demos/

Hope this help.

···

I know how to create an TKentry field but I cannot figure out how to
capture what was typed......anybody have worked out examples?