[PyKDE] [solved] Poss OT calling widget ?

Dave S eric3 at pusspaws.net
Sun Sep 10 21:41:28 BST 2006


I SOLVED it !!!!!!!! :)

OK it took me 8 straight hours of hitting head on keyboard but ...

def main(args):

    app = QApplication(args)
    docview = View()
    docview.parent = docview
    app.setMainWidget(docview)
    docview.show()
    QObject.connect(app, SIGNAL('lastWindowClosed()'),app, SLOT('quit()'))
    app.exec_loop()
    
if __name__=="__main__":
    main(sys.argv)


so I have self.parent ....

        view = dialogs.form1.Form1(self.parent, '', QWidget.WType_Dialog)
        view.show()

And it works :)

Phew !

Dave




More information about the PyQt mailing list