From fc30b71eff263d58b396bad64b41da6e0decc32e Mon Sep 17 00:00:00 2001 From: Lincoln de Sousa Date: Sat, 9 Aug 2008 20:18:44 -0300 Subject: [PATCH] fixing little bug when drawing more thant 2 balls and --- gzv.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gzv.py b/gzv.py index 47cd87e..e112cd8 100644 --- a/gzv.py +++ b/gzv.py @@ -279,20 +279,18 @@ class Gzv(GladeLoader): ctx.fill() ctx.set_line_width(10.0) - ctx.set_source_rgba (0.5, 0.0, 0.0, 0.4) + ctx.set_source_rgba(0.5, 0.0, 0.0, 0.4) for i in self.balls: ctx.arc(i.x, i.y, i.radius, 0, 64*math.pi) - - ctx.fill() - ctx.stroke() + ctx.fill() def draw_current_ball(self): if self.start_x < 0: return ctx = self.draw.window.cairo_create() ctx.arc(self.start_x, self.start_y, self.radius, 0, 64*math.pi) - ctx.set_source_rgba (0.5, 0.0, 0.0, 0.4) + ctx.set_source_rgba(0.5, 0.0, 0.0, 0.4) ctx.fill() def button_press(self, widget, event): -- 2.20.1