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
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to