parameters: (planner)
return_statement: return viewer.plan
docstring: demonstrate the planner with the "thought bubble" of the state stack
docstring_summary: demonstrate the planner with the "thought bubble" of the state stack
docstring_tokens: demonstrate the planner with the thought bubble of the state stack
function: def demo_planner(planner):
      """ demonstrate the planner with the "thought bubble" of the state stack """
      lock = threading.Lock()
      viewer = StripsStateViewer(lock)
      #viewer.show_state(Towers3.INIT)
      thread = threading.Thread(target=planner, args=[viewer,])
      thread.start()
      tk.mainloop()
      thread.join()
      return viewer.plan
function_tokens: def demo_planner ( planner ) : lock = threading . Lock ( ) viewer = StripsStateViewer ( lock ) #viewer.show_state(Towers3.INIT) thread = threading . Thread ( target = planner , args = [ viewer , ] ) thread . start ( ) tk . mainloop ( ) thread . join ( ) return viewer . plan