Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue setting Kivy to fullscreen

I'm trying to write an application that runs kivy at full screen. But these are my issues:

1) When I run the command:

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

Then kivy appears to go full time, but the window has a lot of black spaces around the background image. Even if I elongate the image, kivy just cuts the image when 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 way actually gives me a better result than full screen, but kivy returns a height parameter of only 715 instead of the 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 issue and make my kivy app go real full screen?

Thank you very much

like image 422
Pototo Avatar asked Feb 19 '14 20:02

Pototo


People also ask

How do I make KIVY full screen?

http://kivy.org/docs/api-kivy.config.html#available-configuration-tokens scroll down to ->graphics ->fullscreen.

Are KIVY apps slow?

Kivy is very fast and efficient for a lot of things - in terms of basic graphics operations you can easily push and manipulate thousands of vertices with complex effects at no perceptible slowdown.

What is KIVY with respect to Python?

Kivy is an opensource multi-platform GUI development library for Python and can run on iOS, Android, Windows, OS X, and GNU/Linux. It helps develop applications that make use of innovative, multi-touch UI.


2 Answers

I managed to do it as follows:

from kivy.core.window import Window
Window.maximize()
like image 58
Wilson Lucélio Avatar answered Sep 20 '22 03:09

Wilson Lucélio


Had a similar problem. Using the 'auto' option got rid of the bands for me.

Window.fullscreen = 'auto'

Quote from Kivy Configuration Object documentation: "If set to auto, your current display’s resolution will be used instead. This is most likely what you want."

like image 21
Doug Williams Avatar answered Sep 24 '22 03:09

Doug Williams