Answer the question
In order to leave comments, you need to log in
TypeErrot: object.__init__() takes no parameters. How to fix?
Code from Kivy tutorial:
from kivy.app import App
from kivy.uix.button import Button
class MyApp(App):
def build(self):
return Button(text = "Кнопка",
front_size = 30,
on_press = self.callback)
def callback(self, instance):
print("Кнопка нажата.")
if __name__ == "__main__":
MyApp().run()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question