M
M
mihuzz2020-04-16 13:38:21
Kivy
mihuzz, 2020-04-16 13:38:21

How to get out of full screen mode in kivy?

I can't figure out how to exit full-screen display mode in kivy, launch something in full screen?

5e98357fe34cb654592006.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
Umpiro, 2020-04-16
@Umpiro

I prefer

from kivy.config import Config
Config.set('graphics', 'fullscreen', 0)
#Config.set('graphics', 'resizable', 1)#Может быть понадобится
Config.set('graphics', 'height', 100)
Config.set('graphics', 'width', 100)
Config.write()

Also, remember:
In order to avoid situations where the config settings do not work or are not applied before window creation (like setting an initial window size), Config.set should be used before importing any other Kivy modules. Ideally, this means setting them right at the start of your main.py script.

Another option is to set all of this when creating the Window .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question