From: Chris Alfeld Date: 2006-04-25T00:45:46+09:00 Subject: Re: how to integrate ruby tk/gtk event loop with another kind event loop such as socket server? > I expect a high volume of network traffic so I need to decouple the gui > event loop and the server process. > > Any help much appreciated and thanks in advance. The following is probably insufficient for your high performance situation, but for more forgiving situations: Tk.after_idle {...} is an easy way to have your own code run during the event loop. If Tk has nothing to do then it runs your block. It only does this once, but: p = proc {print "Hi!\n";Tk.after_idle(&p)} Tk.after_idle(p) -- All the geometry managers from Tk are available in Ruby/Tk. What problems are you running into? obj.pack obj.place obj.grid as a backend. Similar to how Tk originally used X11 as a backend. Good luck, c.