default='nope', help="Specify the game id for storing data in nosql") (options, args) = parser.parse_args() testmode = options.testmode tournament = options.tournament nbattles = options.nbattles nographics = options.nographics pyqtgraphics = options.pyqtgraphics upgrade_db = options.upgrade_db gamerobots = options.robots.split(" ") gameID = options.gameid if nographics: viewselect.select_view_module('none') elif not pyqtgraphics: viewselect.select_view_module('pygame') else: viewselect.select_view_module('pyqt') view = viewselect.get_view_module() from game import Game import world from world import box2d import stats
fpi = self.tbl.item(rn, 0) fp = str(fpi.text()) nm = self._name_map[fp] item = QtGui.QTableWidgetItem(nm) item.setData(0, nm) self.tbl.setVerticalHeaderItem(rn, item) def nothing_yet(self): lbl = QtGui.QLabel('Nothing yet') self.vlayout.addWidget(lbl) def run(testmode): app = QtGui.QApplication(sys.argv) splash = Splash(app) splash.show() win = MainWindow(app, testmode) win.show() splash.win = win splash.raise_() app.exec_() if __name__ == "__main__": import viewselect viewselect.select_view_module('pyqt') run(False)
for rn in range(self.tbl.rowCount()): fpi = self.tbl.item(rn, 0) fp = str(fpi.text()) nm = self._name_map[fp] item = QtGui.QTableWidgetItem(nm) item.setData(0, nm) self.tbl.setVerticalHeaderItem(rn, item) def nothing_yet(self): lbl = QtGui.QLabel('Nothing yet') self.vlayout.addWidget(lbl) def run(testmode): app = QtGui.QApplication(sys.argv) splash = Splash(app) splash.show() win = MainWindow(app, testmode) win.show() splash.win = win splash.raise_() app.exec_() if __name__ == "__main__": import viewselect viewselect.select_view_module('pyqt') run(False)
action="store",type='str',default=0, help="Specify the game id for storing data in memcached") (options, args) = parser.parse_args() testmode = options.testmode tournament = options.tournament nbattles = options.nbattles nographics = options.nographics pyqtgraphics = options.pyqtgraphics upgrade_db = options.upgrade_db gamerobots = options.robots.split(" ") gameID = options.gameid if nographics: viewselect.select_view_module('none') elif not pyqtgraphics: viewselect.select_view_module('pygame') else: viewselect.select_view_module('pyqt') view = viewselect.get_view_module() from game import Game import world from world import box2d import stats