How do I re-set Kivy config?

36 views Asked by At
from kivy.core.window import Window

Window(800, 500)

was working. Then I ported to a new system to continue testing (literally, just a new user profile on the same node) and it stopped working.

I stumbled across this:

from kivy import config

fig = config.Config

fig.set('kivy', 'desktop',     '1')
fig.set('graphics', 'custom_titlebar',     '1')
fig.set('graphics', 'borderles',           '1')
fig.set('graphics', 'custom_titlebar',     '1')
fig.set('graphics', 'fullscreen',          '0')
fig.set('graphics', 'resizable',           '1')
# fig.set('graphics', 'width',            '800')
# fig.set('graphics', 'height',           '400')
fig.set('graphics', 'minimum_width',     '400')
fig.set('graphics', 'minimum_height',    '200')
fig.set('graphics', 'maxfps',             '60')
fig.set('graphics', 'always_on_top',      '1' )
fig.set('graphics', 'allow_screensaver',  '1' )
fig.set('graphics', 'maxfps',             '60')
fig.set('graphics', 'allow_screensaver',  '1' )

print(fig.write()) # Output: True
fig.write()

I also used fig.setdefault(as_above) and now all my kivy configs are.

It's not resizing like normal, going into fullscreen is to no avail either.

How do I reset the config to the original kivy formula?

I tried to determine the size of the app.window.

I expected the config to print to a file. Maybe I was reading the code wrong when I was crawling through the packages.

0

There are 0 answers