Minor fix for event.py example in user manual

The `Line2D` class in event.py example had a few member functions that were missing self.