Reputation: 521
Unfortunately I used the following:
Config.set('graphics','width',850)
Config.set('graphics','height',850)
Config.write()
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?
Upvotes: 2
Views: 1249
Reputation: 23
The default values for height and width is (600, 800)
To rest you can either do
Configer.set
with default values. Config.set('graphics','width',800)
Config.set('graphics','height',600)
Config.write()
[graphics]
height = 600
width = 800
config.ini
. On the next run it will automatically be created with default valuesC:\Users\<UserName>\.kivy\config.ini
/home/<UserName>/.kivy/config.ini
/Users/<UserName>/.kivy/config.ini
Reference: kivy doc
Upvotes: 1
Reputation: 16041
The default settings for height and width is as follow. Edit the config file located in ~/.kivy/config.ini
.
[graphics]
height = 600
width = 800
In your kivy app, either remove / comment off the write
statement, or write the new config into your app directory.
Upvotes: 2