Ejemplo n.º 1
0
    def run(self):
        running = True

        while running:
            app = App(self.args)
            app.init(self.ai_controllers)
            self.ai_controllers = app.ai_controllers
            should_exit = app.run()
            running = not should_exit
Ejemplo n.º 2
0
def main() -> int:
    start = now()
    parser = argparse.ArgumentParser(description='Display subtitles from file')
    parser.add_argument('file', type=str, help='file path')

    options = parser.parse_args()
    subs = Subs(options.file)
    try:
        subs.process()
    except SubsFileNotFound:
        return 1

    app = App(start, subs)
    return app.run()
Ejemplo n.º 3
0
def main():
    app = App()
    app.run()
Ejemplo n.º 4
0
from src.app import App

if __name__ == "__main__":
    App.run(host='0.0.0.0', port=7000, debug=True)
Ejemplo n.º 5
0
from src.app import App

app = App()
app.run()
Ejemplo n.º 6
0
def main():
    app = App()
    app.run(creative_mode=False)
Ejemplo n.º 7
0
from src.app import App


if __name__ == "__main__":
    App.run(host="127.0.0.1", port=8000, debug=True)
Ejemplo n.º 8
0
def run():
  e = Engine(WIDTH, HEIGHT)
  app = App(WIDTH, HEIGHT, 'Test Engine', 30, e)
  app.run()
def main():
    app = App()
    app.run()