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)
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