My (simpleish) PyQt project has hit a problem. I have written my main window & it works a treat but I need 2 x custom popup windows to gather information.
I can design them in QT designer but I am unsure how to call them. #################################################### Option 1: Modify my popups so they thread through each other & the second one threads to the main window ie from ... class Form1(QWidget): ... in form1 class Form2(QWidget): ... in Form2 class mainwindow(Qmainwindow): ... in mainwindow to ... class Form1(form2.Form2): ... in form1 class Form2(mainwindow.mainwindow): ... in Form2 class mainwindow(Qmainwindow): ... in mainwindow Then '.hide()' the widgets until they are needed. ##################################################### Option 2: Write code so that when the popup is needed it is called with another ... a = QApplication(sys.argv) QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()")) w = Form1() a.setMainWidget(w) w.show() a.exec_loop() ###################################################### Option 3: Use a 'multi interface document design' as described in the PyQt tutorial - (& try and understand it !) this is pretty complex and I want to avoid it if possible. ###################################################### How do you guys do it ? From a newbe perspective the first option seems the most promising even though i would have to hack the .py code after compiling the forms with Eric3 but I would really value a pointer. Cheers Dave _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde