29 lines
816 B
Plaintext
29 lines
816 B
Plaintext
|
|
<RanNum>:
|
||
|
|
BoxLayout:
|
||
|
|
orientation: 'vertical'
|
||
|
|
Label:
|
||
|
|
text: 'Zufallszahl von 1 bis ?'
|
||
|
|
font_size: sp(24)
|
||
|
|
TextInput:
|
||
|
|
id: upper_boundary_input
|
||
|
|
multiline: False
|
||
|
|
halign: 'center'
|
||
|
|
font_size: 24
|
||
|
|
size_hint: .8, None
|
||
|
|
height: 42
|
||
|
|
hint_text: 'Gib eine Zahl ein!'
|
||
|
|
input_filter: 'int'
|
||
|
|
pos_hint: {'x': .1}
|
||
|
|
Label:
|
||
|
|
size_hint: None, .2
|
||
|
|
Button:
|
||
|
|
text: 'Generate!'
|
||
|
|
font_size: 24
|
||
|
|
size_hint: .5, None
|
||
|
|
pos_hint: {'x': .25}
|
||
|
|
on_release: app.generate_random_number()
|
||
|
|
Label:
|
||
|
|
id: output
|
||
|
|
text: 'Meine Zufallszahl'
|
||
|
|
halign: 'center'
|
||
|
|
font_size: 24
|