It’s running! Yeah!
This commit is contained in:
29
rankiv.kv
Normal file
29
rankiv.kv
Normal file
@@ -0,0 +1,29 @@
|
||||
<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
|
||||
Reference in New Issue
Block a user