<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Modal Dialogs? Basic howto help please.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Sorry, this is probably a stupid question but how do I make a dialog modal if I create an application without a main window?<BR>
<BR>
As an example of my problem, the following creates a dialog but it isn't modal.<BR>
<BR>
import sys<BR>
<BR>
from PyQt4.QtGui import *<BR>
from PyQt4.QtCore import *<BR>
<BR>
app = QApplication(sys.argv)<BR>
dlg = QDialog()<BR>
dlg.exec_()<BR>
app.exec_()<BR>
<BR>
Again, sorry to bother the list with such a basic question but I've been struggling with this one for a while now.<BR>
<BR>
TIA<BR>
<BR>
Lee</FONT>
</P>

</BODY>
</HTML>