resources.py 文件源码

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

项目:isochrones 作者: Samweli 项目源码 文件源码
def get_ui_class(ui_file):
    """Get UI Python class from .ui file.

    :param ui_file: The file of the ui in safe.gui.ui
    :type ui_file: str
    """
    ui_file_path = os.path.abspath(
        os.path.join(
            os.path.dirname(__file__),
            os.pardir,
            'gui',
            'ui',
            ui_file
        )
    )
    return uic.loadUiType(ui_file_path)[0]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号