Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/eye.py
diff options
context:
space:
mode:
authorflavio <fdanesse@gmail.com>2012-07-31 14:53:37 (GMT)
committer flavio <fdanesse@gmail.com>2012-07-31 14:53:37 (GMT)
commit37cc8ed1be82569982626f757be6eaaca83c8cf6 (patch)
tree9c59d7479d4a84912c184eba21c96501bba89205 /eye.py
parentbdee0fb30a0e4d9da08fc7481e20070a3ce7ac0a (diff)
Modularización y correcciones en gstreamer
Diffstat (limited to 'eye.py')
-rw-r--r--eye.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/eye.py b/eye.py
index 7374f92..66405f6 100644
--- a/eye.py
+++ b/eye.py
@@ -139,10 +139,10 @@ class Glasses(Eye):
Eye.__init__(self, fill_color)
self.show_all()
- self.connect('draw', self.do_draw)
+ self.connect('draw', self.draw_glass)
- def do_draw(self, widget, context):
- rect = self.get_allocation()
+ def draw_glass(self, widget, context):
+ rect = widget.get_allocation()
eyeSize = min(rect.width, rect.height)
outlineWidth = eyeSize / 20.0