![]() |
|
#1
|
|||
|
|||
|
close window event
Hi,
I was wondering if it's possible to make my vizard program somehow call a function when a user clicks on the "X" (or close window button)? For example, I'd like to close all the files that I used in my program, etc... Thanks, Shai |
|
#2
|
|||
|
|||
|
Hi,
Vizard has an EXIT_EVENT that is triggered when the script ends. Here is some sample code: Code:
def onexit():
print 'exiting'
viz.callback(viz.EXIT_EVENT,onexit)
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|