FAQ
Hi,

I'm having a problem with modal forms on windows. I've written a very
short test program, with a main window and a form called from the main
window. The form is set to modal with form.setModal(1) before calling
form.show().

All works as expected on Linux. The form is modal, not allowing the main
window to received the focus. If I call the form from within itself, the
topmost form is modal, and not of the previous forms will receive the
focus until the topmost form is closed; then the next topmost is modal,
and so on.

However, on Windows XP Pro (at work - don't use windows at home), the
form is not modal. The main window will receive the focus with a mouse
click even though the modal form is still on top.

The source code is identical on both OS's.

Has anyone run into this before? Is there a fix? I haven't been able to
find anything with google searches, and Trolltech's forums don't seem to
have any entries addressing the problem, either.

I have a progam that I'm writing for work using Qt and Python, which was
like pulling teeth with our Microsoft oriented IT department, and I very
much do not want to tell them that it's not going to work (modal forms
are essential).

Thanks for your help,
Mike

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedMar 24, '07 at 10:08p
activeMar 24, '07 at 11:52p
posts3
users2
websitepython.org

2 users in discussion

Mike: 2 posts David Boddie: 1 post

People

Translate

site design / logo © 2022 Grokbase