[Urwid] Display a message when app exits

Rebecca Breu rebecca at rbreu.de
Tue Jul 18 02:59:19 EDT 2006


Zitat von Sébastien Pierre <sebastien at xprima.com>:

> Hi,
>
> I'd like to print a message when my application exists
>

Hi Sébastien.

Put the print in the last line of your main() function. Any output you want
to be visible after your program has ended must be done after the call of
ui.run_wrapper(), because the wrapper restores the screen when the given
run() function exits.


Rebecca





More information about the Urwid mailing list