Home | Trees | Indices | Help |
|
---|
|
object --+ | pygame.sprite.Sprite --+ | Panel
A pygame Sprite that borrows some methods of the pygame Group class. This allows Panels to be nested.
All nested sprites must have the rect attribute.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
string |
|
||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
cursorDefault = 'default.png'
|
|||
rect = property(_getRect, _setRect)
|
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Adds the sprite to the Panel.
See Also: Group.add() Note: While this method overrides Sprite.add(), it does not perform the same behavior! |
Removes the sprite from the Panel.
See Also: Group.add() |
Empties all nested sprites from the Panel. See Also: Group.empty() |
Draws nested sprites to the screen. An image attribute or draw(screen) function is needed for nested sprites to render.
See Also: Group.draw() |
Called when the cursor hovers over the Panel. Calls the highlight() method of all nested sprites, where present.
|
Called when the user clicks the Panel. Calls the click() method of the topmost nested sprite under the cursor. If no click() method is found, nothing happens. |
Called when the Panel is presented to the user. Calls the enter() method of all nested sprites, where present.
|
Called when the Panel is removed from the user. Calls the exit() method of all nested sprites, where present.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jan 20 14:56:50 2010 | http://epydoc.sourceforge.net |