60. gui.guifunc — GUI support functions.

This module defines a collection of functions which are the equivalent of functions defined in the draw module, but are executed in the viewport with the current GUI focus, instead of the script viewport.

60.1. Functions defined in module gui.guifunc

gui.guifunc.viewport_func(funcname)[source]

Perform a function on the current GUI viewport.

Returns a function with the same name and functionality as a function in the guicore module, but acting on the current GUI viewport instead of on the current script viewport (pf.canvas).

gui.guifunc.inGUIVP(func, *args, **kargs)[source]

Execute a guicore function in the current GUI viewport.

gui.guifunc.renderMode(*args, **kargs)

Change the rendering profile to a predefined mode.

Parameters:

mode (str) – The predefined render mode to be set. The available modes can be obtained with _pf.canvas.renderModes().

gui.guifunc.wireMode(*args, **kargs)

Change the wire rendering mode.

Change the display of edges on top of 2D and 3D geometry.

Parameters:

mode (int | None) – A value in the range -3..3, or None. A positive value turns on one of the wire modes: 1 for all edges, 2 for feature edges, 3 for border edges. Zero and negative values turn off the wire mode. A value None toggles between on and off: if the current value was nonzero, its sign is changed; if it is zero, it becomes 1; if the old mode was None, it is left unchanged.

gui.guifunc.zoomAll(*args, **kargs)

Zoom thus that all actors become visible.