runners.py 文件源码

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

项目:transpyler 作者: Transpyler 项目源码 文件源码
def start_qt_scene_app(inbox=None, outbox=None, ping=False):
    """
    Starts a simple QtApp with a TurtleScene widget.

    Args:
        inbox/outbox:
            Inbox/Outbox queues used for IPC.
    """
    from .view import TurtleView

    app = QtWidgets.QApplication(sys.argv)
    scene = TurtleScene(inbox=inbox, outbox=outbox)
    window = TurtleView(scene)
    window.setWindowTitle('Turtle')
    window.setMinimumWidth(800)
    window.setMinimumHeight(600)
    if ping:
        scene.ping(receive=True)
    window.show()
    sys.exit(app.exec_())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号