mirror of
https://github.com/thp/pyotherside.git
synced 2025-01-17 23:22:53 +08:00
11 lines
270 B
Python
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')
|