diff options
Diffstat (limited to 'eye.py~')
-rw-r--r-- | eye.py~ | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -23,7 +23,7 @@ import gi from gi.repository import Gtk -import Gtk.gdk +import Gdk import math @@ -66,7 +66,7 @@ class Eye(Gtk.DrawingArea): if self.x is None or self.y is None: # look ahead, but not *directly* in the middle - if a.x + a.width / 2 < self.parent.get_allocation().width / 2: + if a.x + a.width / 2 < self.parent.get_allocated_width() / 2: cx = a.width * 0.6 else: cx = a.width * 0.4 |