79148743

Date: 2024-11-01 16:26:23
Score: 1
Natty:
Report link

from kivy.app import App from kivy.uix.button import Button

class MyApp(App): def build(self): return Button(text="Hello, Kivy!", on_press=self.on_button_click)

def on_button_click(self, instance):
    instance.text = "Button Pressed!"

if name == 'main': MyApp().run()

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Swyam Pradhan