Home | Trees | Index | Help |
---|
Package pygsear :: Module Widget :: Class Dialog_ColorSelector |
|
object
--+ |Sprite
--+ |Drawable
--+ |Layer
--+ |Layer
--+ |Widget
--+ |Dialog
--+ |Dialog_OK
--+ | Dialog_ColorSelector
Method Summary | |
---|---|
Initialize the color selector | |
a new object with type S, a subtype of T |
|
__repr__(self)
(inherited from Sprite )
| |
activate(self)
(inherited from Widget )
| |
add(group) add a sprite to container (inherited from Sprite )
| |
add_internal(self,
group)
(inherited from Sprite )
| |
alive() -> bool ask the life of a sprite (inherited from Sprite )
| |
Draw a border around the screen (inherited from Layer )
| |
bool |
Performs a los (line of sight) check from the center of the source to the center of the target. (inherited from Drawable )
|
cancel(self,
pygame_event)
(inherited from Dialog )
| |
center the Drawable in its layer (inherited from Layer )
| |
erase image to background, returning affected rect (inherited from Layer )
| |
bool
|
return True if this sprite and other sprite overlap. (inherited from Drawable )
|
Drawable or False
|
return True if this sprite and any in list of others collide. (inherited from Drawable )
|
List
|
return True if this sprite and any in list of others collide. (inherited from Drawable )
|
deactivate(self)
(inherited from Widget )
| |
return the direction from the sprite to a point (inherited from Drawable )
| |
return the distance from the sprite to a point (inherited from Drawable )
| |
draw image, returning affected rect (inherited from Layer )
| |
return a copy of the sprite's position (inherited from Drawable )
| |
return size of sprite's rect. (inherited from Drawable )
| |
groups() -> list list used sprite containers (inherited from Sprite )
| |
kill() end life of sprite, remove from all groups (inherited from Sprite )
| |
modal(self)
| |
Actions to perform any time the mouse button is held down. | |
Set a flag indicating the mouse button is held down. | |
Reset the mouse button held down flag. | |
set position to next position on path (inherited from Drawable )
| |
nop(self,
arg)
(inherited from Widget )
| |
Move sprite. (inherited from Drawable )
| |
ok(self,
pygame_event)
(inherited from Dialog_OK )
| |
return True if image is on the screen or layer. (inherited from Drawable )
| |
stop moving along Path (inherited from Drawable )
| |
remove(group) remove a sprite from container (inherited from Sprite )
| |
remove_internal(self,
group)
(inherited from Sprite )
| |
call move() continuously (inherited from Drawable )
| |
Set the background. (inherited from Layer )
| |
set_callback(self,
callback)
(inherited from Widget )
| |
Set the chosen color, and update the display of the chosen color. | |
Set up the chooser for the red value of the color. | |
Paint a square with possible colors. | |
set the collision pygame.Rect used for collision
checking. (inherited from Drawable )
| |
set which path to follow (inherited from Drawable )
| |
Move sprite to location. (inherited from Drawable )
| |
Move sprite to a random location on screen (inherited from Drawable )
| |
Set size of sprite's rect. (inherited from Drawable )
| |
move sprite so that it does not overlap with other sprite (inherited from Drawable )
| |
teardown(self)
(inherited from Dialog )
| |
clear sprite and update display (inherited from Drawable )
| |
Draw image and update display. (inherited from Drawable )
| |
start moving along Path (inherited from Drawable )
| |
update(self,
*args)
(inherited from Sprite )
| |
move and re-draw all the sprites that use this layer (inherited from Layer )
|
Method Details |
---|
__init__(self,
window=None)
Initialize the color selector
|
__new__(S, ...)
|
mousebutton_action(self)Actions to perform any time the mouse button is held down. Checks to see if the mouse is inside either of thecolor_square or the color_rect and either
sets the chosen color, or sets the red value for possible colors and
updates the color_square .
|
mousebuttondown(self, ev)Set a flag indicating the mouse button is held down. |
mousebuttonup(self, ev)Reset the mouse button held down flag. |
set_color_chosen(self, color)Set the chosen color, and update the display of the chosen color. |
set_color_rect(self)Set up the chooser for the red value of the color. |
set_color_square(self)Paint a square with possible colors. This uses the ColorSelector |
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sun Nov 30 19:33:12 2003 | http://epydoc.sf.net |