[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] Dialog ignoring Mode flag
From:       George Moody <george () georgemoody ! co ! uk>
Date:       2002-11-29 14:05:42
[Download RAW message or body]

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()


_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic