try app -> raise -> except ?
2012/10/24 flyer <[email protected]>
> Is it possible to initialize and delete QApplication instances many times?
>
> The following is a sample code:
> *try:*
>
>> while some_condition:
>
> app = QApplication(sys.argv)
>
> some_actions
*raise...*
> *except:*
>>
> *'''ending prog'''*
>>
> del app ....*not need, automatic del app* (or app=None)
>>
>
>
>
> 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?
>
> --
> 宠辱不惊,闲看庭前花开花落;去留无意,漫随天边云卷云舒。
>
>
>
> _______________________________________________
> PySide mailing list
> [email protected]
> http://lists.qt-project.org/mailman/listinfo/pyside
>
>
_______________________________________________
PySide mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/pyside