diff options
author | flavio <fdanesse@gmail.com> | 2012-07-31 14:53:37 (GMT) |
---|---|---|
committer | flavio <fdanesse@gmail.com> | 2012-07-31 14:53:37 (GMT) |
commit | 37cc8ed1be82569982626f757be6eaaca83c8cf6 (patch) | |
tree | 9c59d7479d4a84912c184eba21c96501bba89205 /eye.py | |
parent | bdee0fb30a0e4d9da08fc7481e20070a3ce7ac0a (diff) |
Modularización y correcciones en gstreamer
Diffstat (limited to 'eye.py')
-rw-r--r-- | eye.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |