glooey.drawing.artists.Artist

class glooey.drawing.artists.Artist(batch, group, count, mode, data, hidden=False)[source]

Bases: glooey.helpers.HoldUpdatesMixin

Public Properties

batch

group

count

mode

vertex_list

Public Methods:

__init__(batch, group, count, mode, data[, ...])

get_batch()

set_batch(new_batch)

get_group()

set_group(new_group)

get_count()

get_mode()

get_vertex_list()

hide()

show()

Inherited from HoldUpdatesMixin

__init__(batch, group, count, mode, data[, ...])

pause_updates()

resume_updates()

discard_updates()

hold_updates()

suppress_updates()

Private Methods:

_create_vertex_list()

_update_vertex_list()

_group_factory(parent)

_update_group()

Inherited from HoldUpdatesMixin

_filter_pending_updates()

Return all the updates that need to be applied, from a list of all the updates that were called while the hold was active.


__dict__ = mappingproxy({'__module__': 'glooey.drawing.artists', '__init__': <function Artist.__init__>, 'get_batch': <function Artist.get_batch>, 'set_batch': <function Artist.set_batch>, 'get_group': <function Artist.get_group>, 'set_group': <function Artist.set_group>, 'get_count': <function Artist.get_count>, 'get_mode': <function Artist.get_mode>, 'get_vertex_list': <function Artist.get_vertex_list>, 'hide': <function Artist.hide>, 'show': <function Artist.show>, '_create_vertex_list': <function Artist._create_vertex_list>, '_update_vertex_list': <function Artist._update_vertex_list>, '_group_factory': <function Artist._group_factory>, '_update_group': <function Artist._update_group>, '__doc__': None, 'batch': <property object>, 'group': <property object>, 'count': <property object>, 'mode': <property object>, 'vertex_list': <property object>, '__annotations__': {}})
__init__(batch, group, count, mode, data, hidden=False)[source]
__module__ = 'glooey.drawing.artists'
__weakref__

list of weak references to the object (if defined)

_create_vertex_list()[source]
_filter_pending_updates()

Return all the updates that need to be applied, from a list of all the updates that were called while the hold was active. This method is meant to be overridden by subclasses that want to customize how held updates are applied.

The self._pending_updates member variable is a list containing a (method, args, kwargs) tuple for each update that was called while updates were being held. This list is in the order that the updates were actually called, and any updates that were called more than once will appear in this list more than once.

This method should yield or return a list of the tuples in the same format representing the updates that should be applied, in the order they should be applied. The default implementation filters out duplicate updates without changing their order. In cases where it matters, the last call to each update is used to determine the order.

_group_factory(parent)[source]
_update_group()[source]
_update_vertex_list()[source]
property batch
property count
discard_updates()
get_batch()[source]
get_count()[source]
get_group()[source]
get_mode()[source]
get_vertex_list()[source]
property group
hide()[source]
hold_updates()
property mode
pause_updates()
resume_updates()
set_batch(new_batch)[source]
set_group(new_group)[source]
show()[source]
suppress_updates()
property vertex_list