WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-13-2005, 01:10 PM
shai shai is offline
Member
 
Join Date: Oct 2004
Posts: 29
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
Reply With Quote
  #2  
Old 09-13-2005, 01:18 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:51 PM.


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