pyjsdl :: sprite :: GroupSingle :: Class GroupSingle

Class GroupSingle

object --+    
         |    
     Group --+
             |
            GroupSingle

pyjsdl.sprite.GroupSingle

Instance Methods
 
__init__(self, sprite=None)
Return GroupSingle, a Group subclass that holds a single sprite. Can optionally be called with sprite to add.
 
__getattr__(self, attr)
 
add(self, sprite)
Add sprite to group, replacing existing sprite.
 
update(self, *args)
Update sprite by calling Sprite.update.

Inherited from Group: __contains__, __iter__, __len__, __repr__, __str__, clear, copy, draw, empty, has, remove, sprites

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, sprite=None)
(Constructor)

 
Return GroupSingle, a Group subclass that holds a single sprite. Can optionally be called with sprite to add.
Overrides: object.__init__

add(self, sprite)

 
Add sprite to group, replacing existing sprite.
Overrides: Group.add

update(self, *args)

 
Update sprite by calling Sprite.update.
Overrides: Group.update