def process_events(self):
self.get_window().process_events() <EOL>return self<EOL>
Processes pending GUI events. This just calls 

   self.get_window().process_events()

so it requires the object to have been placed somewhere within a window.