From: Antonio Ospite Date: Fri, 8 May 2015 09:35:36 +0000 (+0200) Subject: cairo-gtk-interactivity.py: fix a couple of pep8 warnings X-Git-Url: https://git.ao2.it/experiments/cairo-gtk.git/commitdiff_plain/a38fa6faa343f0134ab950c4cc2ce51cb304abf9?hp=7c799435050c02899ffb50299c2a8321650497a1 cairo-gtk-interactivity.py: fix a couple of pep8 warnings cairo-gtk-interactivity.py:70:80: E501 line too long (128 > 79 characters) cairo-gtk-interactivity.py:121:80: E501 line too long (86 > 79 characters) --- diff --git a/cairo-gtk-interactivity.py b/cairo-gtk-interactivity.py index 5efa973..bc4551c 100755 --- a/cairo-gtk-interactivity.py +++ b/cairo-gtk-interactivity.py @@ -67,7 +67,9 @@ class InteractiveCanvas(Gtk.DrawingArea): self.connect('draw', self.on_draw) self.connect('configure-event', self.on_configure_event) - self.add_events(Gdk.EventMask.BUTTON_PRESS_MASK | Gdk.EventMask.BUTTON_RELEASE_MASK | Gdk.EventMask.POINTER_MOTION_MASK) + self.add_events(Gdk.EventMask.BUTTON_PRESS_MASK | + Gdk.EventMask.BUTTON_RELEASE_MASK | + Gdk.EventMask.POINTER_MOTION_MASK) self.connect('button-press-event', self.on_button_press_event) self.connect('button-release-event', self.on_button_release_event) self.connect('motion-notify-event', self.on_motion_notify_event) @@ -118,7 +120,8 @@ class InteractiveCanvas(Gtk.DrawingArea): self.queue_draw() else: old_selectable = self.selectable - if in_circle(self.x, self.y, self.radius + self.border, event.x, event.y): + if in_circle(self.x, self.y, self.radius + self.border, + event.x, event.y): self.selectable = True else: self.selectable = False