Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2013-08-22 03:04:11 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2013-08-22 03:04:11 (GMT)
commit7f818d20c042597c4907a94d57a910bf18be6eac (patch)
treea509dd41f6968897e3115da2c68376bae03c00f6 /src/api
parentbf66576f53787f293aa6fc80dca81b1d05a721ee (diff)
minor cleans
Diffstat (limited to 'src/api')
-rwxr-xr-xsrc/api/Button.py7
-rwxr-xr-xsrc/api/Image.py7
2 files changed, 3 insertions, 11 deletions
diff --git a/src/api/Button.py b/src/api/Button.py
index 2bf33a5..13c4e9d 100755
--- a/src/api/Button.py
+++ b/src/api/Button.py
@@ -22,8 +22,7 @@ class CButton(CLabel):
self.mclicked = False
self.bgColor = (0xCC, 0xCC, 0xCC)
self.set_text('Button')
-
-
+
def clicked(self):
return self.mclicked
@@ -32,11 +31,7 @@ class CButton(CLabel):
def update(self):
CLabel.update(self)
-
- #TODO: Make a CMouse class and check for isPressed() and click().
- #check for mouse input
-
self.mclicked = False
if CMouse().firstPress():
diff --git a/src/api/Image.py b/src/api/Image.py
index 3b3ce7f..1c11c57 100755
--- a/src/api/Image.py
+++ b/src/api/Image.py
@@ -21,11 +21,8 @@ def loadImage(aImageFilename, aIsTransparent = True):
if aIsTransparent:
image = image.convert_alpha()
-
- # TODO: This is doubt... (taken from a tutorial), don't work?
- #image = image.convert()
- #esto obtiene el color del pixel 0, 0
- #color = image.get_at((0,0))
+
+ #TODO: verificar la flag RLEACCEL
#image.set_colorkey(color, RLEACCEL)
else:
image = image.convert()