import pyoimport timefrom kivy.app import Appfrom kivy.uix.button import Button
class MyApp(App):
def __init__(self): super(MyApp, self).__init__() self.button = Button(text = "B", font_size = 50) self.button.bind(on_press = self.callBack)
def callBack(self): print "call back called." def build(self): return self.button
if __name__ == "__main__": MyApp().run()