![]() |
|
#2
|
|||
|
|||
|
The vizinput dialogs create a blocking action which will halt rendering and events. If you want the user to make selections while the script runs normally you can use one of Vizard's other GUI libraries. Does this work for you?
Code:
import vizinfo
import viz
import vizshape
viz.go()
info = vizinfo.InfoPanel('Press n to toggle visibility of the ball')
dropdown = info.addLabelItem('blah',viz.addDropList())
dropdown.addItems(['fsdg','sd'])
theball = vizshape.addCircle(pos=[0,1.5,5])
vizact.onkeydown('n', theball.visible, viz.TOGGLE)
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| vizinput module missing | whaleeee | Vizard | 1 | 02-06-2013 12:30 AM |
| User keyboard input without halting the program | Zhi | Vizard | 2 | 06-23-2011 01:53 PM |
| Keyboard shortcuts for debugging | kopper | Vizard | 6 | 03-25-2011 06:23 PM |
| Question about input from virtual keyboard. | yyang | Vizard | 4 | 12-23-2008 01:25 PM |
| On Screen Keyboard | betancourtb82 | Vizard | 14 | 10-03-2006 01:38 PM |