command.py 文件源码

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

项目:CMakeBuilder 作者: rwols 项目源码 文件源码
def _on_done_select_generator(cls, index):
        if index == -1:
            cls._is_selecting = False
            return
        cls.generator = cls.items[index][0]
        platform_support = cls.items[index][1]
        toolset_support = cls.items[index][2]
        cls.platform_support = True if "True" in platform_support else False
        cls.toolset_support = True if "True" in toolset_support else False
        print("CMakeBuilder: Selected generator is", cls.generator)
        if cls.platform_support:
            text = "Platform for {} (Press Enter for default): ".format(
                cls.generator)
            print("CMakeBuilder: Presenting input panel for platform.")
            cls.window.show_input_panel(text, "",
                                        cls._on_done_select_platform,
                                        None, None)
        elif cls.toolset_support:
            cls._select_toolset()
        else:
            cls._run_configure_with_new_settings()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号