from kivy.app import App from kivy.uix.button import Button class TesztApp(App): def build(self): btn = Button(text='Vált', on_press=self.csinal, size_hint=(1.0,.1)) return btn def csinal(self, instance): self.title ='valami' TesztApp().run()