from kivy.uix.label import Label my_label = Label(text='Hello, world!', font_size='20sp')
from kivy.app import App from kivy.uix.label import Label from kivy.clock import Clock class MyLabelApp(App): def build(self): my_label = Label(text='Hello, world!', font_size='20sp') Clock.schedule_once(self.update_font_size, 2) return my_label def update_font_size(self, dt): my_label.font_size = '30sp' MyLabelApp().run()In this example, the font size of the label "my_label" is initially set to 20sp, but after 2 seconds, the "update_font_size" method is called and the font size of the label is changed to 30sp. Package library: Kivy (https://kivy.org/)