示例#1
0
 def thread(self, *args):
     print "Started interp thread"
     locals = args[0]
     game = pybw_swig.getGame()
     locals.update(dict(game=game, swig=pybw_swig))
     i = code.InteractiveConsole(locals=locals)
     i.interact()
示例#2
0
文件: pybw.py 项目: majormoses/PyBW
 def thread(self, *args):
     print "Started interp thread"
     locals = args[0]
     game = pybw_swig.getGame()
     locals.update(dict(game=game, swig=pybw_swig))
     i = code.InteractiveConsole(locals=locals)
     i.interact()
 def onConnect(self):
     self.game = pybw_swig.getGame() 
     print "Connected to broodwar!"
示例#4
0
 def onConnect(self):
     self.game = pybw_swig.getGame()
     print "Connected to broodwar!"
示例#5
0
 def onConnect(self):
     game = pybw_swig.getGame()
     self.consoleClient = pybw_repl.ConsoleClient()
     self.consoleClient.start_repl(dict(game=game, swig=pybw_swig))
示例#6
0
文件: pybw.py 项目: majormoses/PyBW
 def onConnect(self):
     game = pybw_swig.getGame()
     self.consoleClient = pybw_repl.ConsoleClient()
     self.consoleClient.start_repl(dict(game=game, swig=pybw_swig))