![]() |
|
#10
|
|||
|
|||
|
You should not be using yield statements if you are not using tasks. Here is a sample script that displays a dialog without using tasks. Use the spacebar to toggle the visibility of the dialog.
Code:
import viz
import vizdlg
viz.go()
#Create empty dialog
dlg = vizdlg.Dialog(title='Dialog title')
#Link dialog to center of window
viz.link(viz.CenterCenter,dlg)
#Toggle dialog visibility when spacebar is pressed
vizact.onkeydown(' ',dlg.visible,viz.TOGGLE)
viz.add('gallery.ive')
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Create my own animations | michelcm3 | Vizard | 1 | 09-21-2007 10:53 AM |
| how to create morph from the comple characters CD | michelcm3 | Vizard | 9 | 07-19-2007 11:15 AM |
| Alpha and Texturing questions | Manny | Vizard | 3 | 03-08-2007 12:55 PM |
| General Questions about Vizard: World Viz | dav | Vizard | 5 | 08-28-2006 04:44 PM |
| Antialiasing questions | oodini | Vizard | 1 | 12-06-2005 01:08 PM |