UserPreferences

PyroDocGuiDrawable


1. pyro.gui.Drawable

This class encapsulates anything that can be rendered. Drawables are lists of drawables.

In File: pyrobot/gui/drawable.py

Subclass of: UserList

  1. pyro.gui.Drawable
    1. Constructor(name = 'top level', options = {})
    2. Internal Functions
      1. _draw(options, renderer)
    3. External Functions
      1. getOptions()
      2. getName()
      3. getDrawables()
      4. draw(options, renderer)

1.1. Constructor(name = 'top level', options = {})

Name is a globaly unique name for this drawable.

Arguments:

1.2. Internal Functions

1.2.1. _draw(options, renderer)

This is the function that children should implement. It should draw itself.

Arguments:

1.3. External Functions

1.3.1. getOptions()

Returns: a dictionary (indexed by drawable name) of dictionaries (indexed by option name) of possible option values.

Returns:

1.3.2. getName()

Return the name of this Drawable

Returns:

1.3.3. getDrawables()

Returns a list of self plus all children's drawables

Returns:

1.3.4. draw(options, renderer)

Draw all children and then draw self

Arguments