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

11 lines
270 B
Python

# This examples shows how to do cleanups and other things when
# the application exists by using pyside.atexit().
import pyotherside
def called_when_exiting():
print('Now exiting the application...')
pyotherside.atexit(called_when_exiting)
print('python loaded')