__init__.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:thegame 作者: afg984 项目源码 文件源码
def main(client_class=None):
    global app
    if client_class is None:
        from thegame.gui.interactive import InteractiveClient
        client_class = InteractiveClient
    import sys
    from PyQt5.QtWidgets import QApplication
    from thegame.gui.scene import Scene
    from thegame.gui.view import View

    app = QApplication(sys.argv)
    scene = Scene()
    view = View(scene)
    client_instance = client_class()
    client_instance._attach(view, scene)
    client_instance.start()

    view.show()
    return app.exec()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号