Re: Re: [pygtk] gtk.MessageDialog not transiente on win32

Jarek Zgoda jzgoda at o2.pl
Tue Feb 6 17:39:34 WST 2007


> > It seems GTK's message dialog (gtk.MessageDialog) does not work as
> > expected on win32 as it does not stay on top if it's parent window
> > (but it's still modal and locks the parent).
> 
> I've seen the same behaviour in some non-Gtk applications
> on Windows, too, so it seems like it might be a general
> Windows "feature"...

It's not a Windows failure. Setting proper dialog flags in MessageBox function makes the dialog application modal (the default), system modal or task modal. The dialog box should be always placed at the top of the windows stack and the applications that fail to do this properly that I know of are those written in Java w/SWT toolkit and GTK2 based.

I'm not sure if this is the problem of PyGTK setting wrong flags, as GTK on Windows doesn't seem to use system message dialogs. I think "normal" dialog windows don't have such feature natively.

Cheers
Jarek Zgoda


More information about the pygtk mailing list