From: MENON Jean-Francois Date: 2002-01-18T05:38:44+09:00 Subject: Re: Newbie question: RubyTk and Observer ? hello, I'm a newbie too could you please tell me : > In any case each one of this GT let you can generate your > events that are catched by the "mainloop" even if they are > not GUI events (i.e. sockets, filehandlers,...) how you do this with tk ? > > Using ruby you can use the global variables (starting with $) trick. > You tie a global variable to a method. When the variable state > changes, the method is called. > In other words an Observer is implemented as build-in in > the language. and this ? thx, jf