diff options
author | Gonzalo Odiard <godiard@sugarlabs.org> | 2010-11-21 06:28:58 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@sugarlabs.org> | 2010-11-21 07:05:40 (GMT) |
commit | ca88eea111f7418d6be3c3a1c2c430ecc78d26e3 (patch) | |
tree | a968127f68f992ec5e8e647799ec75cb1d2240c8 /globos.py | |
parent | 3abcffb5c6c9b715279cbcf5206f5436ea68c190 (diff) |
set dashed lines to control lines
Diffstat (limited to 'globos.py')
-rw-r--r-- | globos.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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): |