![]() |
#2
|
|||
|
|||
I have found a way around:
def myTask(): while True: btn = yield viztask.waitMouseDown(None) #Wait for mouse click viz.visible(viz.OFF) #Turn off the screen if btn.button == 1: #Left botton click yield function_a() elif btn.button == 4: #Right botton click yield function_b() yield viztask.waitTime(1) viz.visible(viz.ON) #Turn on the screen viztask.schedule(myTask) Cheers! Zhi |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Realistic Light and Shadows Using Vizard and 3DS Max | jde | Vizard | 4 | 07-13-2012 10:58 AM |
Vizard 4 Beta Testing | farshizzo | Announcements | 0 | 02-01-2011 10:46 AM |
Vizard 4 Beta Testing | farshizzo | Vizard | 0 | 02-01-2011 10:46 AM |
Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 11:13 AM |
timer question | Elittdogg | Vizard | 5 | 10-10-2007 02:49 PM |