Skip to content
Almar Klein edited this page Jun 1, 2017 · 3 revisions

Inherits from BaseObject.

A Wibject (widget object) is a 2D object drawn in screen coordinates. A Figure is a widget and so are an Axes and a PushButton. Wibjects have a position property to set their location and size. They also have a background color and multiple event properties.

This class may also be used as a container object for other wibjects. An instance of this class has no visual appearance. The Box class implements drawing a rectangle with an edge.

The Wibject class implements the following properties:
bgcolor, eventPosition, position

Properties

Get/Set the background color of the wibject.

Fired when the position (or size) of this wibject changes.

Get/Set the position of this wibject. Setting can be done by supplying either a 2-element tuple or list to only change the location, or a 4-element tuple or list to change location and size.

See the docs of the vv.base.Position class for more information.

Clone this wiki locally