(self)
| 105 | return False |
| 106 | |
| 107 | def peek_event(self): |
| 108 | # Get the next event. |
| 109 | if self.current_event is None: |
| 110 | if self.state: |
| 111 | self.current_event = self.state() |
| 112 | return self.current_event |
| 113 | |
| 114 | def get_event(self): |
| 115 | # Get the next event and proceed further. |