diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-03-12 20:31:09 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-03-12 20:31:09 (GMT) |
commit | 282af47401c03c55c78e5c3e973f718d1eac6bad (patch) | |
tree | 0d18c829d5fc3ec3a192db54d362ff35a359f289 | |
parent | 0459c94d44883b7cdb24cf98be7dbf8e0cd19bc8 (diff) |
Show the controls in the rectangle with dashes like in the other globes.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r-- | globos.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -431,15 +431,24 @@ class Rectangulo(Globo): # Si esta seleccionado pintamos un recuadro alrededor del globo # y un par de controles if self.selec: + context.save() context.set_line_width(ANCHO_LINEAS_CONTROLES) context.set_source_rgb(1, 1, 1) context.rectangle(self.x - self.ancho - 2, self.y - self.alto - 2, 2 * self.ancho + 4, 2 * self.alto + 4) + context.stroke_preserve() + context.set_source_rgb(0, 0, 0) + context.set_dash([2]) context.stroke() + context.set_source_rgb(1, 1, 1) context.rectangle(self.x - self.ancho - 5, self.y - self.alto - 5, 10, 10) + context.stroke_preserve() + context.set_source_rgb(0, 0, 0) + context.set_dash([2]) context.stroke() + context.restore() def mover_punto(self, x, y, rect): pass |