Package populusgui :: Module PopulusGui :: Class Selector
[frames] | no frames]

Class Selector


Setup a selector to indicate the selected Avatar.

Instance Methods
 
__init__(self, type='blue')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
selectAvatar(self, avatar)
Select an Avatar and paint him.
 
deselectAvatar(self)
Deselect the selected avatar.

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  TYPESPECS = {'blue': {'alpha': 0.7, 'height': 0.035, 'model': ...
  PRIME_HPR = (0, -90, 0)
Properties

Inherited from object: __class__

Method Details

__init__(self, type='blue')
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

selectAvatar(self, avatar)

 

Select an Avatar and paint him.

Keyword arguments: avatar -- the avatar to select (type: Avatar).


Class Variable Details

TYPESPECS

Value:
{'blue': {'alpha': 0.7,
          'height': 0.035,
          'model': 'Models/selection_blue.egg',
          'scale': 1},
 'red': {'alpha': 0.7,
         'height': 0.055,
         'model': 'Models/selection_red.egg',
         'scale': 1}}