#1
|
|||
|
|||
Blindfolding screen, asking for input, unblindfolding.
Hello, and thank you for reading. Here is what I am trying to do:
1. Turn the screen black. 2. Display a popup dialog which asks for an input. 3. Turn the world back on. Here is some code that should do that when you press the spacebar: Code:
import viz import vizinput import vizact piazza = viz.add('piazza.osgb') viz.go() def getInput(): # Blindfold. This isn't working. viz.MainScene.visible(0,viz.WORLD) viz.clearcolor(viz.SKYBLUE) # Ask for input input = '' while input == '': input = vizinput.input('Input something.') # Unblindfold viz.MainScene.visible(1,viz.WORLD) viz.clearcolor(viz.BLACK) vizact.onkeydown(' ', getInput) 1. Ask for input. Help would be greatly appreciated. Thank you for reading. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Screen Size and Scaling | javadi | Vizard | 2 | 04-02-2013 06:56 PM |
Pygame Screen within Vizard World | VirtuallyInsane | Vizard | 4 | 02-18-2013 10:50 AM |
Attach a TexQuad to pit.osgb screen | Ducky | Vizard | 1 | 01-17-2013 03:57 PM |
split screen | honey006 | Vizard | 3 | 05-21-2009 10:57 AM |
position of html-file on screen | active_world | Vizard | 1 | 05-16-2008 08:24 PM |