Configuring Kivy for full screen mode

I am trying to write an application that runs kiwi in full screen mode. But these are my problems:

1) When I run the command:

#Config.set('graphics', 'fullscreen', 1)

Then kivy seems to work full time, but the window has a lot of black spaces around the background image. Even if I extend the image, kivy just cuts the image, showing it.

2) When I run this command to set the window size to the size of my screen:

Config.set('graphics', 'width', '1366')
Config.set('graphics', 'height', '768')

This method really gives me a better result than the full screen, but kivy only returns a height parameter of 715 instead of 768, which is the value I told kivy to use (as you can see in the Config.set () function above).

My screen resolution is 1366x768

How can I solve this problem and make my kivy application real full-screen?

Many thanks

+3
source share
5 answers

Try

from kivy.core.window import Window
Window.fullscreen = True

Do this before your App.run () application and switch to full screen?

Greetings

+3
source

this works for me:

Config.set('graphics', 'fullscreen', 'auto')
+3
source

:

from kivy.core.window import Window
Window.size = (1366, 768)
Window.fullscreen = True
+2

. "auto" .

Window.fullscreen = 'auto'

Kivy Configuration: " " ", . , ".

+2

, , . , Config.set('graphics','window_state'_'maximized' .

if __name__ == "__main__":
Config.set('graphics', 'fullscreen', 'auto')
Config.set('graphics', 'window_state', 'maximized')
Config.write()
YourApp().run()
0

All Articles