View Single Post
  #3  
Old 11-13-2013, 04:31 PM
javadi javadi is offline
Member
 
Join Date: Mar 2013
Location: London
Posts: 33
Hi,

Thanks again for your reply. Yes, I read that post before posting mine.

Apparently it does matter whether the dialogue window is popped-up over a full screen or a window. Here it goes a sample code,

Code:
import viz
import viztask

viz.setOption('viz.fullscreen', '1')

viz.go()


def MainProcedure():

	...

	yield viztask.waitDraw()

	Age = viz.input('Age?')	

	...

if __name__ == "__main__":
	viztask.schedule(MainProcedure())
Two things might happen when the run reaches the viz.input line: (1) it either make the screen black, display the Input window and then back to normal display, or (2) it minimizes the fullscreen (and show desktop), display the Input window and then back to normal display.

I can somehow understand the reason behind it: it might not be trivial to have a fullscreen display and display a window over it, as it somehow violate the definition of fullscreen. But, we know that it sometimes happen.

For now, as a work-around I open the Vizard display in window mode, but to the size of the screen. It is a bit annoying as you see the border of the window, but the dialogue window doesn't affect the original display.

Greetings
Amir
Reply With Quote