Skip to content
Advertisement

Kivy – Error while trying to use my.kv file

I’ve just started learning kivy and I am unable to get a black window when I run this code, and this is an error:

Kivy files require #:kivy !ex

This is my code snippet:

gui_python.py

JavaScript

My my.kv file is:

JavaScript

enter image description here

Advertisement

Answer

I use Builder.load_string() and paste my .kv code in it and that’s work

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement