Package pygsear :: Module Widget :: Class StationaryTextButton
[show private | hide private]
[frames | no frames]

Class StationaryTextButton

            TextButton --+
                         |
object --+               |
         |               |
    Sprite --+           |
             |           |
      Drawable --+       |
                 |       |
        Stationary --+   |
                     |   |
    Widget --+       |   |
             |       |   |
        Button --+   |   |
                 |   |   |
object --+       |   |   |
         |       |   |   |
    Sprite --+   |   |   |
             |   |   |   |
      Drawable --+   |   |
                 |   |   |
      SpriteButton --+   |
                     |   |
      StationaryButton --+
                         |
                        StationaryTextButton


Clickable button which is also a sprite with text printed on it and does not need to move.
Method Summary
  __init__(self, window, text, length, callback, size, color, border, borderColor, padding, bgColor, group)
a new object with type S, a subtype of T __new__(S, ...)
  __repr__(self)
(inherited from Sprite)
  activate(self)
(inherited from Widget)
  add(self, group)
add(group) add a sprite to container (inherited from Sprite)
  add_internal(self, group)
(inherited from Sprite)
  alive(self)
alive() -> bool ask the life of a sprite (inherited from Sprite)
  arm(self)
(inherited from Button)
bool can_see(self, target, blocking_rects_list)
Performs a los (line of sight) check from the center of the source to the center of the target. (inherited from Drawable)
  center(self, x, y, dx, dy)
Align the Drawable in its layer (inherited from Drawable)
  clear(self)
Blit saved background to both background and foreground. (inherited from Stationary)
  clicked(self, pygameEvent)
(inherited from Button)
bool collide(self, other)
return True if this sprite and other sprite overlap. (inherited from Drawable)
Drawable or False collidelist(self, lothers)
return True if this sprite and any in list of others collide. (inherited from Drawable)
List collidelistall(self, lothers)
return True if this sprite and any in list of others collide. (inherited from Drawable)
  deactivate(self)
(inherited from Widget)
  direction(self, point)
return the direction from the sprite to a point (inherited from Drawable)
  distance(self, point)
return the distance from the sprite to a point (inherited from Drawable)
  draw(self)
Blit image to both background and foreground. (inherited from Stationary)
  fire(self, pygameEvent)
(inherited from Button)
  get_position(self)
Return current position (inherited from Stationary)
  get_size(self)
return size of sprite's rect. (inherited from Drawable)
  groups(self)
groups() -> list list used sprite containers (inherited from Sprite)
  kill(self)
kill() end life of sprite, remove from all groups (inherited from Sprite)
  makeButton(self)
(inherited from TextButton)
  modal(self)
(inherited from SpriteButton)
  move(self)
Does nothing. (inherited from Stationary)
  nop(self, arg)
(inherited from Widget)
  nudge(self, dx, dy)
Move sprite. (inherited from Drawable)
  onscreen(self, slack, **kw)
return True if image is on the screen or layer. (inherited from Drawable)
  pause(self)
stop moving along Path (inherited from Drawable)
  prepare(self)
Save a copy of the background underneath where the sprite will be drawn. (inherited from Stationary)
  released(self, pygameEvent)
(inherited from Button)
  remove(self, group)
remove(group) remove a sprite from container (inherited from Sprite)
  remove_internal(self, group)
(inherited from Sprite)
  runPath(self, frames)
call move() continuously (inherited from Drawable)
  set_callback(self, callback)
(inherited from Widget)
  set_crect(self, crect)
set the collision pygame.Rectused for collision checking. (inherited from Drawable)
  set_path(self, path)
set which path to follow (inherited from Drawable)
  set_position(self, position)
Move the sprite. (inherited from Stationary)
  set_positionRandom(self, slack)
Move sprite to a random location on screen (inherited from Drawable)
  set_size(self, size)
Set size of sprite's rect. (inherited from Drawable)
  solid(self, other, move_both)
move sprite so that it does not overlap with other sprite (inherited from Drawable)
  stretch(self, dx, dy, size, keepAspectRatio)
Change the size of sprite's image, and rect. (inherited from Drawable)
  uclear(self, surface)
clear sprite and update display (inherited from Drawable)
  udraw(self, surface)
Draw image and update display. (inherited from Drawable)
  unpause(self)
start moving along Path (inherited from Drawable)
  update(self, *args)
(inherited from Sprite)

Method Details

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

Generated by Epydoc 1.1 on Sun Jan 25 19:10:11 2004 http://epydoc.sf.net