Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-04-12 13:33:07 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-04-12 13:33:07 (GMT)
commitd7446f97e8d2a78e3814413476051fec1b9abaab (patch)
tree6901e0f54acba565c3b2b4c755b296cd41491c41
parent1d8e91935e60b83e71f9c9ac9cf0eff8f72eb624 (diff)
Better default sizes for globes
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--globos.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/globos.py b/globos.py
index 9ede3ea..c116d6c 100644
--- a/globos.py
+++ b/globos.py
@@ -21,8 +21,8 @@ DIR_IZQ = "izq"
DIR_DER = "der"
DEFAULT_FONT = 'Sans'
-DEFAULT_GLOBE_WIDTH = style.GRID_CELL_SIZE * 2.5
-DEFAULT_GLOBE_HEIGHT = style.GRID_CELL_SIZE * 1.5
+DEFAULT_GLOBE_WIDTH = style.GRID_CELL_SIZE * 1.5
+DEFAULT_GLOBE_HEIGHT = style.GRID_CELL_SIZE / 2
def _get_screen_dpi():
@@ -53,7 +53,7 @@ class Globo:
#dimensiones de la elipse
self.ancho = ancho
self.alto = alto
- self.punto = [5, 10]
+ self.punto = [ancho / 2, alto * 2]
#determina si esta seleccionado
# TODO: make private
self.selec = False
@@ -500,7 +500,7 @@ class Nube(Globo):
self.ancho = ancho
self.alto = alto
- self.punto = [5, 10]
+ self.punto = [ancho / 2, alto * 2]
#determina si esta seleccionado
self.selec = False
@@ -632,7 +632,7 @@ class Grito(Globo):
self.ancho = ancho
self.alto = alto
- self.punto = [5, 50]
+ self.punto = [ancho / 2, alto * 2]
self.selec = False
self.direccion = direccion