cairo-gtk-interactivity.py: fix a couple of pep8 warnings
authorAntonio Ospite <ao2@ao2.it>
Fri, 8 May 2015 09:35:36 +0000 (11:35 +0200)
committerAntonio Ospite <ao2@ao2.it>
Fri, 8 May 2015 09:36:06 +0000 (11:36 +0200)
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)

cairo-gtk-interactivity.py

index 5efa973..bc4551c 100755 (executable)
@@ -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