[PyKDE] regarding QWidget::setWindowFlags

Chakkaradeep C C chaks.yoper at gmail.com
Thu Feb 2 18:25:09 GMT 2006


Hi all,

Am using PyQt.I want my window not to be resized or moved, so in the Qt docs
, i have been instructed to use setWindowFlags.My application is a QWizard
application.Below you can find the code,

******************************************
from qt import *
from YoperInstaller import *
import sys

def main(args):
    app=QApplication(args)
    win=YoperInstaller(app)
    app.setMainWidget(win)
    app.setWindowFlags(app.FramelessWindowHint) ===> doesnt work :(
    win.show()
    app.exec_loop()

if __name__ == "__main__":
    main(sys.argv)
*********************************************

The YoperInstaller is the GUI Module(QWizard).The setWindowFlags doesnt
work.

I would be happy if anybody could help me .

And also, what is the function to disable the Max,Min and Close Button in
the Top Window?

Thanks in advance.

--
Regards,
Chaks,
Yoper Ltd.
http://www.yoper.com
http://www.yoper.com/forum
--
The main aim of communication is clarity and simplicity. Simplicity means
focussed effort.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060202/2facdeb0/attachment.html


More information about the PyQt mailing list