Re: Hook user loop into program

2011-04-17 Thread Robert Park
On Sat, Apr 16, 2011 at 5:04 AM, Marco wrote: > Where should I put the function > DoSomeStuff()? I attached a minimal example, it's written in lua. You should call DoSomeStuff() immediately before gtk.main(), but at the end of the loop in DoSomeStuff you will need to add this code: while gtk.eve

Re: Hook user loop into program

2011-04-17 Thread Bill C
Once gtk-main is called, it waits for something to do. Normally this would be a result of some user interaction. Either use a "Run" button to get some action or use a timer to interrupt and start the processing. Rgds Bill On 17/04/11 16:15, Maklakov Andrey wrote: Hello. I'm not experie