[PySide] initialize and delete QApplication instances many times

flyer flyer103 at gmail.com
Wed Oct 24 13:32:09 CEST 2012


Is it possible to initialize and delete QApplication instances many times?

The following is a sample code:

while some_condition:

    app = QApplication(sys.argv)



    some_actions


>     del app



I tried, but it seemed impossible.

If I want to initialize and delete QApplication instances many times in a
single file, how can I do that?

-- 
宠辱不惊,闲看庭前花开花落;去留无意,漫随天边云卷云舒。
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20121024/72c17ff1/attachment.html>


More information about the PySide mailing list