I need to create a new class with name App
and wrap default Kivy App method run()
, but Kivy already has this name. What I tried to do:
from kivy.app import App as KvApp
class SportApp(KvApp):
def build(self):
# here it builds
# my class
class App:
def start_app(self):
SportApp().run()
if __name__ == '__main__':
App.start_app()
App.start_app()
TypeError: start_app() missing 1 required positional argument: 'self'