WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   close window event (https://forum.worldviz.com/showthread.php?t=411)

shai 09-13-2005 01:10 PM

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

farshizzo 09-13-2005 01:18 PM

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)



All times are GMT -7. The time now is 08:31 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC