1
0
mirror of https://github.com/thp/pyotherside.git synced 2025-01-17 23:22:53 +08:00
pyotherside/examples/atexit_example.py

11 lines
270 B
Python
Raw Normal View History

2014-02-06 21:31:24 +01:00
# This examples shows how to do cleanups and other things when
# the application exists by using pyside.atexit().
2013-08-07 21:47:24 +02:00
import pyotherside
def called_when_exiting():
print('Now exiting the application...')
pyotherside.atexit(called_when_exiting)
print('python loaded')