![]() |
#8
|
|||
|
|||
The show method just sets the dialog visible, waits for either the accept or cancel button to be pressed, then hides the dialog. If you do not want to use a task, then you can manually perform these steps. Here is the code for the show command:
Code:
def show(self): """Create task that displays dialog""" #Show dialog self.visible(1) #Yield until accept or cancel button is released d = viz.Data() yield viztask.waitButtonUp([self.accept,self.cancel],d) #Save whether the dialog was accepted self.accepted = d.button is self.accept #Hide dialog self.visible(0) |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Create my own animations | michelcm3 | Vizard | 1 | 09-21-2007 09:53 AM |
how to create morph from the comple characters CD | michelcm3 | Vizard | 9 | 07-19-2007 10:15 AM |
Alpha and Texturing questions | Manny | Vizard | 3 | 03-08-2007 11:55 AM |
General Questions about Vizard: World Viz | dav | Vizard | 5 | 08-28-2006 03:44 PM |
Antialiasing questions | oodini | Vizard | 1 | 12-06-2005 12:08 PM |