From: Lincoln de Sousa Date: Sat, 9 Aug 2008 23:18:44 +0000 (-0300) Subject: fixing little bug when drawing more thant 2 balls and X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fmovie.git;a=commitdiff_plain;h=fc30b71eff263d58b396bad64b41da6e0decc32e fixing little bug when drawing more thant 2 balls and --- 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):