Hi,

In my maindialog i'm trying to close the application when an error has 
occurred. But my application won't stop running.

a = QApplication(sys.argv)

w = mainwindow()
a.setMainWindow(w)
a.exec_loop()


class mainwindow(QMainWindow):
    def __init__(self, *args):
         QMainWindow.__init__(self, *args)
         error = 1
         if error:
             qApp.quit()
         else:
             self.show()


This will not close the application

Please help,
Vincent

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to