top_block.py 文件源码

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

项目:GroundStation 作者: ClydeSpace-GroundStation 项目源码 文件源码
def main(top_block_cls=top_block, options=None):

    from distutils.version import StrictVersion
    if StrictVersion(Qt.qVersion()) >= StrictVersion("4.5.0"):
        style = gr.prefs().get_string('qtgui', 'style', 'raster')
        Qt.QApplication.setGraphicsSystem(style)
    qapp = Qt.QApplication(sys.argv)

    tb = top_block_cls()
    tb.start()
    tb.show()

    def quitting():
        tb.stop()
        tb.wait()
    qapp.connect(qapp, Qt.SIGNAL("aboutToQuit()"), quitting)
    qapp.exec_()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号