Kivy — it is a platform independent GUI tool in Python. Since it can run on Android, IOS, Linux, Windows, etc. It is mainly used to develop Android application, but that does not mean that it cannot be used in desktop applications.
RelativeLayout support absolute and relative positioning depending on whether is used or pos_hint or pos. But if you want absolute positioning, use FloatLayout.
Basic Approach to create Relative Layout: 1) import kivy 2) import kivyApp 3) import button 4) import Relativelayout 5) Set minimum version (optional) 6) create App class: - define build () function 7) return Layout / widget / Class (according to requirement) 8) Run an instance of the class
Implementation of the approach using poses:
It just assigns a position to the button. Since
Relativelayout is independent of the window size, it is now fixed at that position, if you make the window size small it may disappear rather than adjust.
Now, if you want the button to adjust to fit the window, use pos_hint .
Approach to implementation using pos_hint p >