projects
/
cascardo
/
movie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ce39fc9
)
fixing little bug when drawing more thant 2 balls and
author
Lincoln de Sousa
<lincoln@minaslivre.org>
Sat, 9 Aug 2008 23:18:44 +0000
(20:18 -0300)
committer
Lincoln de Sousa
<lincoln@minaslivre.org>
Sat, 9 Aug 2008 23:18:44 +0000
(20:18 -0300)
gzv.py
patch
|
blob
|
history
diff --git
a/gzv.py
b/gzv.py
index
47cd87e
..
e112cd8
100644
(file)
--- a/
gzv.py
+++ b/
gzv.py
@@
-279,20
+279,18
@@
class Gzv(GladeLoader):
ctx.fill()
ctx.set_line_width(10.0)
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)
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)
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):
ctx.fill()
def button_press(self, widget, event):