From: MENON Jean-Francois Date: 2002-02-07T14:14:14+09:00 Subject: Re: combining Tk and irb as interfaces to app Joel VanderWerf wrote: > > Hi, > > What's the best way to use both Tk and the irb command line as > interfaces to a ruby program? > > > Any suggestions? > > If it helps, my app is an environment for interacting with the evolution > of a simulation. The user should be able to execute commands and scripts > from the command line, and also to use some Tk windows to inspect the > state of the simulation and also issue simple commands like 'run', > 'stop'. etc. > hi, the only way I know working well is to launch Tk.mainloop in the main Thread and use TkAfter for user input (maybe in another Thread) jf -- ________________________________________ / La vie, c'est ce qui arrive quand on a \ \ d'autres projets. - John Lennon - / ---------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||