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):