本文整理匯總了Python中visualizer.Visualizer.join方法的典型用法代碼示例。如果您正苦於以下問題:Python Visualizer.join方法的具體用法?Python Visualizer.join怎麽用?Python Visualizer.join使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類visualizer.Visualizer
的用法示例。
在下文中一共展示了Visualizer.join方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: main
# 需要導入模塊: from visualizer import Visualizer [as 別名]
# 或者: from visualizer.Visualizer import join [as 別名]
def main():
cerebellum.registerMessageHandler(TestHandler())
staticMap = StaticMap()
cerebellum.registerMessageHandler(staticMap)
logic = SimpleStackLogic(cerebellum,staticMap)
cerebellum.registerMessageHandler(logic)
if visualize:
from visualizer import Visualizer
import simple_stack_visualizer
vis = Visualizer(cerebellum, staticMap)
vis.registerDrawer(simple_stack_visualizer.createDrawer(logic))
vis.start()
vis.registerDrawer(cerebellum.insurance.draw)
mainLoop()
if visualize:
vis.terminate = True
vis.join()
示例2: Visualizer
# 需要導入模塊: from visualizer import Visualizer [as 別名]
# 或者: from visualizer.Visualizer import join [as 別名]
#!/usr/bin/python
import psyco
psyco.full()
from misc import *
from controller import connection,cerebellum,visualize,mainLoop,staticMap
##############
cerebellum.registerMessageHandler(TestHandler())
#cerebellum.command = ("moveTo",0,0)
if visualize:
from visualizer import Visualizer
vis = Visualizer(cerebellum, staticMap)
vis.start()
mainLoop()
if visualize:
vis.terminate = True
vis.join()