You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kivy users support
Hi, I'm trying to standarize some kivy applications so I want to extract functionality, as far it has been well with the python files, but with the kv files I have been not that lucky. I can't find a way to import kv files from an external package. I have tried something like:
#:include force package.file.kv
I have tried as well with the python way:
from kivy.lang importBuilder Builder.load_file('package.file.kv')
Javier Uribe
unread,
May 8, 2019, 6:51:37 AM5/8/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kivy users support
After a lot of attempts I have discovered how.
importmodule from os.path import join from kivy.lang importBuilder Builder.load_file(join(module.__path__._path[0], file_name))
Apparently with the python way it is possible if we pass it as parameter the module's path..