games_nebula.py 文件源码

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

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

        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()

        if self.dosbox == 'system':
            dosbox_bin = 'dosbox'
        elif self.dosbox == 'path':
            dosbox_bin = self.dosbox_path + '/' + self.dosbox_version + '/bin/dosbox'

        dosbox_version = self.check_dosbox_version(dosbox_bin)

        dosbox_global_config = os.getenv('HOME') + '/.games_nebula/config/dosbox.conf'

        os.system('python2 ' + nebula_dir + '/settings_dosbox.py ' \
        + dosbox_global_config + ' global ' + dosbox_version)

        # TODO Use if special config tool for svn-daum build exists (settings_dosbox_svn_daum.py)
        #~ if (dosbox_version == 'stable') or (dosbox_version == 'svn'):
            #~ os.system('python2 ' + nebula_dir + '/settings_dosbox.py ' + \
            #~ dosbox_global_config + ' global ' + dosbox_version)
        #~ elif dosbox_version == 'svn_daum':
            #~ os.system('python2 ' + nebula_dir + '/dosbox_settings_svn_daum.py ' + \
            #~ dosbox_global_config + ' global ' + dosbox_version)

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


问题


面经


文章

微信
公众号

扫码关注公众号