[PyQt] Qt.WindowCloseButtonHint undefined
Wolfgang Rohdewald
wolfgang at rohdewald.de
Sun Jun 7 11:36:14 BST 2009
Hello,
flags = self.windowFlags()
newflags = flags | Qt.WindowStaysOnTopHint
newflags = flags & ~ Qt.WindowCloseButtonHint
self.setWindowFlags(newflags)
self.show()
AttributeError: WindowCloseButtonHint
WindowStaysOnTopHint is defined, but not WindowCloseButtonHint.
looking at http://doc.trolltech.com/4.5/qt.html#WindowType-enum
I cannot see why. Could the QT documentation be wrong by not stating
that WindowCloseButtonHint is new with libqt4.5, or is the pyqt
interface incomplete?
I have libqt 4.5.0, pyqt 4.4.4, python-sip4 4.7.9 on kubuntu 9.04
--
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090607/b3b9107c/attachment.html
More information about the PyQt
mailing list