T
T
temagadfazer2018-09-10 14:01:21
Python
temagadfazer, 2018-09-10 14:01:21

Kivy python not rendering any widget?

Good afternoon, I'm trying to run Kivy on linux Mint. The code is the simplest:

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

class MyFirstProgramApp(App):
    def duild(self):
        return Button(text = "Hello world!")

if __name__ == '__main__':
    MyFirstProgramApp().run()

The result is just a black screen. I wanted to get a button with an inscription, changed it to Label - the same thing, just a black screen. Everything seems to be fine in the console, no errors. I have already installed a bunch of additional libraries, but nothing is displayed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Helow19274, 2018-09-10
@temagadfazer

class MyFirstProgramApp(App):
    def duild(self):
        return Button(text = "Hello world!")

duild -> build

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question