smpl.plot.Widget

class smpl.plot.Widget[source]

Bases: object

Abstract base class for GUI neutral widgets.

__init__()

Methods

__init__()

get_active()

Get whether the widget is active.

ignore(event)

Return whether event should be ignored.

set_active(active)

Set whether the widget is active.

Attributes

active

Is the widget active?

drawon

eventson

property active

Is the widget active?

get_active()[source]

Get whether the widget is active.

ignore(event)[source]

Return whether event should be ignored.

This method should be called at the beginning of any event callback.

set_active(active)[source]

Set whether the widget is active.