def kill (self):
        """Kill the thread, returning when it has been shut down."""
        self.ready.acquire()
        self._kill=1
        self.ready.release()
        self.join()
Kill the thread, returning when it has been shut down.
recipes/Python/65109_Building_GTK_GUIs_interactively/recipe-65109.py