: BoxLayout: orientation: 'vertical' Image: source: 'zufall.png' TextInput: id: upper_boundary_input multiline: False halign: 'center' font_size: sp(24) size_hint: .8, None height: sp(42) hint_text: 'Gib eine Zahl ein!' input_filter: 'int' pos_hint: {'x': .1} Label: size_hint: None, .2 Button: text: 'Generate!' font_size: sp(24) size_hint: .5, None pos_hint: {'x': .25} on_release: app.ran_num.generate_random_number() Label: id: output text: 'Meine Zufallszahl' halign: 'center' font_size: sp(24)