V
V
VadimTolk2018-05-29 21:23:54
Python
VadimTolk, 2018-05-29 21:23:54

What if the App method doesn't want to be imported from Kivy (PyCharm)?

Here is my code:

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


class TestApp(App):
    def build(self):
        return Button(text='Hello World')

TestApp().run()

Writes here such error
5b0d9a4b6fd1e493564354.png
What to do I will not apply mind if to start from the folder double click on the file, then everything works. When I press RUN in PyCharm, I write an error

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-05-29
@dimonchik2013

and double click the same python uses? virtualenv I mean

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question