On Sat, 6 May 2000, George Farris wrote:

> I want to pop up a window, make sure it's shown fully on the screen 
> and then execute some other code. When that code is finished I will 
> destroy the pop up window.  I've tried the following:
> 
> gm = GnomeMessageBox(message='Please wait')
> gm.show()
>                
> while events_pending():
>     mainiteration()
> 
> other code
> 
> gm.destroy()
> 
> But it doesn't seem to show the contents of the window, ie the 
> 'Please wait' until after "other code" is finished.
> 
> Can someone tell me what I'm doing wrong.  I thought the 
> mainiteration would update all outstanding window events.
> 

You could try the show_now() method.  It should handle making sure that
the window is shown correctly.

Note however, if the window gets covered and exposed again, it won't be
able to redraw itself, as the gtk event loop is not being run.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to