From: Jeppe Jakobsen Date: 2006-04-01T10:04:05+09:00 Subject: Re: Questions about Tk - Newbie ------=_Part_6510_19557911.1143853440929 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Okay, thanks. I have played a little around with it now, and I can get a TkText widget to display a variable. Neither through text or insert. How do you then do it? 2006/4/1, Chris Alfeld : > > # This can be shortened at the expense of clarity. > > require 'tk' > > root =3D TkRoot.new > v =3D TkVariable.new('Foo') > e =3D TkEntry.new(root,'textvariable'=3D>v) > e.pack > b =3D TkButton.new(root,'text'=3D>'PrintFoo','command'=3D>proc {print v.v= alue + > "\n"}) > b.pack > > Tk.mainloop > > -- "winners never quit, quitters never win" ------=_Part_6510_19557911.1143853440929--