WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 09-13-2005, 01:10 PM
shai shai is offline
Join Date: Oct 2004
Posts: 29
close window event

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...

Reply With Quote
Old 09-13-2005, 01:18 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849

Vizard has an EXIT_EVENT that is triggered when the script ends. Here is some sample code:
def onexit():
    print 'exiting'
Reply With Quote

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 08:15 PM.

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