Vizard 8 » Command Index » Vizard objects » window » <window>.setPosition
8.0

<window>.setPosition

Sets the position of the window.

<window>.setPosition(  
[x,y]  
mode = viz.WINDOW_NORMALIZED # keyword argument
)  
[x,y]
Position of upper left corner of window, relative to lower left corner of screen.
mode = viz.WINDOW_NORMALIZED
viz.WINDOW_NORMALIZED
viz.WINDOW_PIXELS

Remarks

The position of the window refers to the top left corner of the window.

Return Value

None

Example

window = viz.addWindow()
window.setPosition([.5,.5])

This will put the top left corner of the window in the center of the Vizard window.