L
L
leo97972018-08-01 00:22:36
Python
leo9797, 2018-08-01 00:22:36

Why doesn't the Python kIvy window open?

I'm watching a tutorial on Kivy and in PyCharm to implement a window call with a button with text....but instead it is displayed in the console in red:
[INFO ] [Logger ] Record log in C:\Users\[computer name type]\.kivy\ logs\kivy_18-08-01_0.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
Code itself:

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

class MyApp(App):
    def build(self):
        return Button(text = "Это моя первая кнопка")

if __name__ == "__test__":
    MyApp().run()

I don’t understand what the problem is, in the console I checked for the presence of Python and Kivy connected to PyCharm, what’s the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
slepowl, 2018-08-02
@leo9797

https://kivy.org/docs/installation/installation-wi...
Follow steps 1 to 3. Although I would also recommend 4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question