Vizard 7 » Command Index » Vizard objects » window » <window>.setSize
7.6

<window>.setSize

Sets the size of the window relative to the Vizard Window.

<window>.setSize(  
[width,height]  
mode = viz.WINDOW_NORMALIZED # keyword argument
)  
[width,height]
The width/height of the subwindow
mode = viz.WINDOW_NORMALIZED
viz.WINDOW_NORMALIZED
viz.WINDOW_PIXELS

Remarks

This command will set the size of the window. If mode is viz.WINDOW_NORMALIZED, the size is relative to the graphics window. The window will maintain the relative size if the graphics window is resized. If mode is viz.WINDOW_PIXELS, the size is in pixel units. The window will maintain the pixel size if the graphics window is resized.

Return Value

None

Example

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

This sets the size to half the window's height and width and moves it the top left corner of the window.