[PyQt] Modal Dialogs? Basic howto help please.
Lee Jackson
leej at sowhatresearch.com
Tue Jun 17 17:52:41 BST 2008
Sorry, this is probably a stupid question but how do I make a dialog modal if I create an application without a main window?
As an example of my problem, the following creates a dialog but it isn't modal.
import sys
from PyQt4.QtGui import *
from PyQt4.QtCore import *
app = QApplication(sys.argv)
dlg = QDialog()
dlg.exec_()
app.exec_()
Again, sorry to bother the list with such a basic question but I've been struggling with this one for a while now.
TIA
Lee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080617/443b8dc8/attachment.html
More information about the PyQt
mailing list