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 | |
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 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. | |
Inherited from Dialog_OK | |
| |
Inherited from Dialog | |
| |
| |
Inherited from Layer | |
center the Drawable in its layer | |
erase image to background, returning affected rect | |
draw image, returning affected rect | |
move and re-draw all the sprites that use this layer | |
Inherited from Drawable | |
bool |
Performs a los (line of sight) check from the center of the source to the center of the target. |
bool
|
return True if this sprite and other sprite overlap. |
Drawable or False
|
return True if this sprite and any in list of others collide. |
List
|
return True if this sprite and any in list of others collide. |
return the direction from the sprite to a point | |
return the distance from the sprite to a point | |
return a copy of the sprite's position | |
return size of sprite's rect. | |
set position to next position on path | |
Move sprite. | |
return True if image is on the screen or layer. | |
stop moving along Path | |
call move() continuously | |
set the collision pygame.Rect used for collision
checking. | |
set which path to follow | |
Move sprite to location. | |
Move sprite to a random location on screen | |
Set size of sprite's rect. | |
move sprite so that it does not overlap with other sprite | |
Change the size of sprite's image, and rect. | |
clear sprite and update display | |
Draw image and update display. | |
start moving along Path | |
Inherited from Sprite | |
| |
add(group or list of of groups, ...) add a sprite to container | |
| |
alive() -> bool check to see if the sprite is in any groups | |
groups() -> list of groups list used sprite containers | |
kill() remove this sprite from all groups | |
remove(group or list of groups, ...) remove a sprite from container | |
| |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
Inherited from Layer | |
Draw a border around the screen | |
Set the background. | |
Inherited from Widget | |
| |
| |
| |
| |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T |
Class Variable Summary | |
---|---|
Inherited from Dialog_OK | |
NoneType |
message = None |
Method Details |
---|
__init__(self,
window=None)
Initialize the color selector
|
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 2.0 on Sat Dec 9 14:11:20 2006 | http://epydoc.sf.net |