As premise: I'm a beginner in the world of programming.
I would like to create my first application which should run on different devices, i.e. Smartphones or tablets with different screen sizes.
The main window should adapt automatically to the height of the device. I found on this forum two ways to control window size.
With the first one, I can determine the window size:
from kivy.config import Config Config.set('graphics', 'width', 200) Config.set('graphics', 'height', 100)
But this is a static method with constant values. Alternatively, I could set the window to full screen:
from kivy.config import Config Config.set('graphics', 'fullscreen', 1)
This way the window covers the whole display and changes the proportion of the window and of the widgets inside…
Is there a way to get the display height and use it to build my window?