If you donβt know which layout to use, use a grid layout because it is the most versatile.
In general, if you want to put n widgets in a row, set rows: 1 . If you want to put n widgets in a column, set cols: 1 .
Then, manipulate size_hint to set the widget to the correct size.
You can use blank shortcuts to create spaces between widgets.
About Kivy Designer - First, familiarize yourself with customizing the user interface before using this tool.
#:kivy 1.9.0 < RoundGauge@Button >: text: 'gauge' < SidePanel@GridLayout >: cols: 1 size_hint_x: .2 RoundGauge: size_hint_y: .5 RoundGauge: size_hint_y: .5 GridLayout: rows: 1 Slider: orientation: 'vertical' Slider: orientation: 'vertical' # main layout divided into bottom gauges and screen part GridLayout: cols: 1 canvas: Color: rgba: 1,1,1,.5 Rectangle: size: self.size # both side panels and screen part GridLayout: rows: 1 # left panel SidePanel: # middle panel GridLayout: cols: 1 # upper gauges GridLayout: rows: 1 size_hint_y: .3 Label: RoundGauge: size_hint_x: .5 Label: size_hint_x: .1 RoundGauge: size_hint_x: .5 Label: Label: text: 'screen' canvas: Color: rgba: 1,1,1,.5 Rectangle: size: self.size pos: self.pos # bottom gauges GridLayout: rows: 1 size_hint_y: .3 RoundGauge: RoundGauge: RoundGauge: RoundGauge: RoundGauge: RoundGauge: # right panel SidePanel: GridLayout: rows: 1 size_hint_y: .2 RoundGauge: RoundGauge: RoundGauge: RoundGauge: RoundGauge: RoundGauge: RoundGauge:
source share