games_nebula.py 文件源码

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

项目:games_nebula 作者: yancharkin 项目源码 文件源码
def goglib_launch_game(self, button):

        self.switch_monitor('ON')

        self.main_window.hide()
        if len(self.additional_windows_list) != 0:
            for window in self.additional_windows_list:
                window.hide()

        while Gtk.events_pending():
            Gtk.main_iteration()

        game_name = button.get_name()

        self.set_environ(game_name, self.goglib_download_dir, self.goglib_install_dir)

        start_file_path = self.goglib_install_dir + '/' + game_name + '/start.sh'
        os.system('chmod +x ' + start_file_path)
        os.system(start_file_path)

        self.switch_monitor('OFF')

        self.main_window.show()
        if len(self.additional_windows_list) != 0:
            for window in self.additional_windows_list:
                window.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号