From: Phlip Date: 2002-08-25T11:00:56+09:00 Subject: Re: interactive ruby/tk app (was: ruby/tk internals) Ferenc Engard wrote: > ------------------------------------------ > $topContext=binding() > ... > def evalText(text) > puts eval text, $topContext > end > ------------------------------------------ > > It looks better. Are there other (more pretty :) solutions? You appear to be learning by reading the docs for each part, then seeing how to put them together one by one. Learn by downloading the ruby tk examples; e-search for "ruby-tk81-demos-english", then take one of the (overgrown) examples and (painstakingly) remove each bit you don't need. A vaguely OO model will pop out. Then find alternative examples and read them. -- Phlip http://www.greencheese.org/PhilosophyBrethrenThree -- Please state the nature of the programming emergency --