vispy.scene.widgets.console module

Fast and failsafe GL console

class vispy.scene.widgets.console.Console(text_color='black', font_size=12.0, **kwargs)[source]

Bases: vispy.scene.widgets.widget.Widget

Fast and failsafe text console

Parameters
text_colorinstance of Color

Color to use.

font_sizefloat

Point size to use.

clear()[source]

Clear the console

property font_size

The font size (in points) of the text

on_resize(event)[source]

Resize event handler

Parameters
eventinstance of Event

The event.

property text_color

The color of the text

write(text='', wrap=True)[source]

Write text and scroll

Parameters
textstr

Text to write. '' can be used for a blank line, as a newline is automatically added to the end of each line.

wrapstr

If True, long messages will be wrapped to span multiple lines.

class vispy.scene.widgets.console.ConsoleVisual(text_color, font_size, **kwargs)[source]

Bases: vispy.visuals.visual.Visual

clear()[source]

Clear the console

property font_size

The font size (in points) of the text

property size
property text_color

The color of the text

write(text='', wrap=True)[source]

Write text and scroll

Parameters
textstr

Text to write. '' can be used for a blank line, as a newline is automatically added to the end of each line.

wrapstr

If True, long messages will be wrapped to span multiple lines.