[Python] How to build a basic app on Kivy using python?

Discussão em 'Python' iniciado por Stack, Setembro 23, 2024.

  1. Stack

    Stack Membro Participativo

    import kivy
    kivy.require('2.3.0') # replace with your current kivy version !

    from kivy.app import App
    from kivy.uix.label import Label


    class MyApp(App):

    def build(self):
    return Label(text='Hello world')


    I am trying to run the above code (MyApp.run()) but it's failing with OSError: source code not available error. Any idea how to resolve it ?

    Continue reading...

Compartilhe esta Página