From: "Kontra, Gergely" Date: 2002-04-25T21:54:48+09:00 Subject: Re: Tk under Ruby [newbie to ruby] Azt irtad, hogy >>"Kontra, Gergely" wrote: >>> >>> Hello! >>> >>> I'd like to use Tk under ruby. >>> >>> My main problem, that I want to use Tk in the other way: it must listen >>> to a port, and display incoming data. >>> >>> My problem: when I call Tk.mainloop, it will never return. >>> Shall I write? >>> >>> Thread.new { Tk.mainloop } >>> >>use Tk.after in a thread to read in your socket, then launch >>Tk.mainloop. >> Err. I haven't find any documentation about Tk.after Can you give me a very short example, which eg. reads from a socket, and writes it to a text widget? Gergo +-[Kontra, Gergely @ Budapest University of Technology and Economics]-+ | Email: kgergely@mcl.hu, kgergely@turul.eet.bme.hu | | URL: turul.eet.bme.hu/~kgergely Mobile: (+36 20) 356 9656 | +-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+ . Magyar php mirror es magyar php dokumentacio: http://hu.php.net