[PyKDE] Dialog ignoring Mode flag
George Moody
george at georgemoody.co.uk
Fri Nov 29 15:08:00 GMT 2002
Using this simple dialog (shown below), I am unable to get it to display in
modeless form, irrespective of how the modal value is set in the Qdialog
creation.
Have I missed something in the documentation? I'm using SUSE8.1 and the latest
RPM's from Sourceforge.
Regards
George
import sys
from qt import *
qtapp= QApplication(sys.argv)
splash=QDialog(None,None,0,0)
splashimage = QPixmap("splash.png")
splash.setFixedSize(splashimage.size())
splash.PixmapLabel1 = QLabel(splash,"PixmapLabel1")
splash.PixmapLabel1.setMaximumSize(splash.size())
splash.PixmapLabel1.setMinimumSize(splash.size())
splash.PixmapLabel1.setPixmap(splashimage)
splash.exec_loop()
appwin = QMainWindow()
butt = QPushButton(appwin,"Hello")
appwin.setCentralWidget(butt)
appwin.show()
qtapp.exec_loop()
More information about the PyQt
mailing list