[PyQt] Run code after the QtDialog shows

starglider.dev starglider.dev at gmail.com
Thu May 24 21:20:57 BST 2012


Hi,
I need to "emulate" a terminal and need to automaticly run the code after
the QDialog shows and close the QDialog after it ends the task.
How can I do that, the best I made was this:

class ConsoleClass(QDialog): ...

def main():
 app = QApplication(sys.argv)
    main.form = ConsoleClass()

    main.form.show()
    app.processEvents()

main()

It works fine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120524/9ca955fd/attachment.html>


More information about the PyQt mailing list