launcher_scummvm.py 文件源码

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

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

        output = self.combobox_monitor.get_active_text().split()[0]
        os.system('xrandr --output '+ output + ' --primary')

        self.main_window.hide()

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

        if self.scummvm == 'global':

            if global_scummvm == 'system':
                launch_command = 'scummvm --no-fullscreen -c ' + self.install_dir \
                + '/' + self.game_name + '/scummvmrc'
            if global_scummvm == 'path':
                launch_command = global_scummvm_path + '/' + global_scummvm_version + \
                '/bin/scummvm --no-fullscreen -c ' + self.install_dir \
                + '/' + self.game_name + '/scummvmrc'

        elif self.scummvm == 'system':
            launch_command = 'scummvm --no-fullscreen -c ' + self.install_dir \
            + '/' + self.game_name + '/scummvmrc'

        elif self.scummvm == 'path':
            launch_command = self.scummvm_path + '/' + self.scummvm_version + \
            '/bin/scummvm --no-fullscreen -c ' + self.install_dir \
            + '/' + self.game_name + '/scummvmrc'

        os.system(launch_command)

        output = self.monitor_primary.split()[0]
        os.system('xrandr --output '+ output + ' --primary')

        self.main_window.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号