From: Dave Date: 2002-01-18T14:17:51+09:00 Subject: Re: Newbie question: RubyTk and Observer ? On Thu, 17 Jan 2002 20:31:29 GMT, cix wrote: >Hi, > [snip] >In ruby I didn't want to repeat the experience, so I looked for anothe >graphic toolkit (GT). I think Tk is ok, but it is lacking of some >important things that you expect to be there in OO programming. >Your problem and your solution are tipical examples. >With ruby I tried FXRuby, Gtk+ and fltk. >At the moment I use the latter because it is under developement, >so that it is possible to help and to learn. >So far I am happy with it. >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,...) Actually it looks like there's such a thing as a ClientMessage XEvent, which Tk can handle: http://tcl.activestate.com/man/tcl8.4/TkLib/CrtCmHdlr.htm Now I've just got to figure out what the Ruby version of Tk_CreateClientMessageHandler is.