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 06:28:58 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2010-11-21 07:05:40 (GMT)
commitca88eea111f7418d6be3c3a1c2c430ecc78d26e3 (patch)
treea968127f68f992ec5e8e647799ec75cb1d2240c8 /globos.py
parent3abcffb5c6c9b715279cbcf5206f5436ea68c190 (diff)
set dashed lines to control lines
Diffstat (limited to 'globos.py')
-rw-r--r--globos.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/globos.py b/globos.py
index 06efc88..3d37ddc 100644
--- a/globos.py
+++ b/globos.py
@@ -106,6 +106,7 @@ class Globo:
# si esta seleccionado se dibujan los controles
if self.selec:
+ context.save()
context.set_line_width(ANCHO_LINEAS_CONTROLES)
x = self.x * self.radio / (self.ancho * 1.0)
@@ -115,6 +116,9 @@ class Globo:
context.set_source_rgb(1, 1, 1)
context.rectangle(self.x - self.ancho, self.y - self.alto,
2 * self.ancho, 2 * self.alto)
+ context.stroke_preserve()
+ context.set_source_rgb(0, 0, 0)
+ context.set_dash([2])
context.stroke()
ancho_marcador = 15
@@ -134,6 +138,7 @@ class Globo:
(ancho_marcador / 2), 0, x * math.pi)
context.stroke()
+ context.restore()
logging.error("end printing controls")
def get_circle_position(self):