Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/globos.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2010-11-21 07:31:50 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2010-11-21 07:31:50 (GMT)
commit36bf7200def6fdbf419badcb2066827d958997f2 (patch)
tree7d90a87b1d329a3d4d1f6da5e7e9b9c032d8ca64 /globos.py
parent879e8e3f7ed5e3695061e97c5e4a3b2d93f57ca9 (diff)
remove code what can be replaced by code inherited / comment prints
Diffstat (limited to 'globos.py')
-rw-r--r--globos.py21
1 files changed, 4 insertions, 17 deletions
diff --git a/globos.py b/globos.py
index daa0b27..0fd2342 100644
--- a/globos.py
+++ b/globos.py
@@ -517,15 +517,6 @@ class Nube(Globo):
return self.x + self.punto[0] / 2, \
self.y - self.alto - self.punto[1] / 2
- def calc_area_texto(self):
- ancho_text = self.ancho - 12 * self.ancho / (self.radio * 1.0)
- alto_text = self.alto - 12 * self.alto / (self.radio * 1.0)
- return (ancho_text, alto_text)
-
- def calc_area(self, ancho_text, alto_text):
- self.ancho = self.texto.ancho / (1 - 12 / (self.radio * 1.0))
- self.alto = self.texto.alto / (1 - 12 / (self.radio * 1.0))
-
class Grito(Globo):
@@ -573,7 +564,7 @@ class Grito(Globo):
for i in range(steps):
alpha = 2.0 * i * (math.pi / steps)
- print "i", i, "alpha", alpha
+ #print "i", i, "alpha", alpha
sinalpha = math.sin(alpha)
cosalpha = math.cos(alpha)
@@ -589,8 +580,8 @@ class Grito(Globo):
(direction == DIR_IZQ and i == 12) or \
(direction == DIR_ARRIBA and i == 18):
- print "** POINT", "punto[0]", punto[0], "punto[1]", punto[1]
- print "** x", x, "y", y
+ #print "** POINT", "punto[0]", punto[0], "punto[1]", punto[1]
+ #print "** x", x, "y", y
if direction == DIR_ABAJO:
x = x_cen + punto[0]
@@ -605,7 +596,7 @@ class Grito(Globo):
x = x_cen + punto[0]
y = y_cen - height - punto[1]
- print x, y
+ #print x, y
cr.line_to(x, y)
cr.close_path()
cr.set_source_rgb(1, 1, 1)
@@ -619,10 +610,6 @@ class Grito(Globo):
alto_text = self.alto - 20 * self.alto / (self.radio * 1.0)
return (ancho_text, alto_text)
- def calc_area(self, ancho_text, alto_text):
- self.ancho = self.texto.ancho / (1 - 12 / (self.radio * 1.0))
- self.alto = self.texto.alto / (1 - 12 / (self.radio * 1.0))
-
class Imagen(Globo):