Still running… in multiple files, with global font_size…

This commit is contained in:
2024-04-29 22:49:29 +02:00
parent e3f032507e
commit 8ed3d2d76c
4 changed files with 51 additions and 37 deletions

View File

@@ -0,0 +1,13 @@
from random import randint
from kivy.uix.boxlayout import BoxLayout
class RanNum(BoxLayout):
pass
def generate_random_number(self):
try:
upper_boundary = int(self.ids.upper_boundary_input.text)
self.ids.output.text = str(randint(1, upper_boundary))
except ValueError:
self.ids.output.text = 'Bitte nur positive,\nganze Zahlen eingeben!'