如何恢复到默认值(默认值)? [英] How to get back to default screen size in kivy?

查看:114
本文介绍了如何恢复到默认值(默认值)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不幸的是,我使用了以下内容:

Unfortunately I used the following:

Config.set('graphics','width',850)
Config.set('graphics','height',850)
Config.write()

在我的文件中.我的kivy应用程序的窗口(屏幕)以"ipad"屏幕尺寸(在屏幕"模块中表示)打开.从"config.ini"系统中的该实例添加了"[模块]屏幕= ipad".帮助我解决此问题以及如何将屏幕尺寸恢复正常?

in my of kivy file. My kivy application's window(screen) is opening in 'ipad' screen size(denoted in Screen module). From that instance in 'config.ini' system added '[module] screen = ipad'. Help me get through this and how to restore my screen size to normal?

推荐答案

  1. 高度和宽度的默认设置如下.编辑位于〜/.kivy/config.ini 中的配置文件.

[graphics]
height = 600
width = 800

  • 在您的kivy应用程序中,删除/注释掉 write 语句,或将新配置写入您的应用程序目录.

  • In your kivy app, either remove / comment off the write statement, or write the new config into your app directory.

    这篇关于如何恢复到默认值(默认值)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆