I created some custom widget.
from kivy.uix.widget import Widget
from kivy.lang import Builder
class ExampleWidget(Widget):
Builder.load_file("kv/example.kv")
kv/example.kv
#:kivy 1.9.1
<ExampleWidget>:
Label:
text: Example
Than I want to create another widget with example widget. Like this:
kv/second.kv
#:kivy 1.9.1
<SecondWidget>:
ExampleWidget:
But I got this error
kivy.factory.FactoryException: Unknown class <ExampleWidget>
Kivy can't find my custom widget, so how I can import it to another kivy file?