def loop(self, handle_mouse=False): self.eloop=urwid.MainLoop(self, self.PALLETE, handle_mouse=handle_mouse) self._eloop_thread=threading.current_thread() self.eloop.run()