43. 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.

43.1. Functions defined in module gui.guifunc

gui.guifunc.viewport_function(func)[source]

Perform a function on the current GUI viewport.

This is a decorator function executing a function on the current GUI viewport instead of on the current script viewport.

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

Change the rendering profile to a predefined mode.

Currently the following modes are defined:

  • wireframe
  • smooth
  • smoothwire
  • flat
  • flatwire
  • smooth_avg
gui.guifunc.wireMode(*args, **kargs)[source]

Change the wire rendering mode.

Currently the following modes are defined: ‘none’, ‘border’, ‘feature’,’all’

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

Zoom thus that all actors become visible.

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

Execute a draw function in the current GUI viewport.