From: Frank W. <war...@po...> - 2005-12-02 21:19:52
|
On 12/2/05, Liming Wang <lm...@gm...> wrote: > One trick I found is that for print_to_file() to work I have to put it af= ter > gtk.mainloop(), but the script has lost control (?) of OpenEV after > gtk.mainloop() and I have to close OpenEV window for the script to contin= tue > to run. I tried to use methods from gviewapp in place of gtk.mainloop() t= o > avoid losing the control, and since I don't know gtk programming well > enough, I didn't find anything that works. Liming, For window initialization to work, you definately need to give things some time to process events. There should be a way to process events till things "settle down" though I'm not clear exactly how to do that. Best regards, -- ---------------------------------------+-----------------------------------= --- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.c= om light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent |