Cannot create graphics instruction outside the main Kivy thread

599 views
Skip to first unread message

Chinedu Jude

unread,
Jun 5, 2022, 2:14:40 PM6/5/22
to kivy-...@googlegroups.com
Whenever I run my code it shows 'Cannot create graphics instruction outside the main Kivy thread'.
In my code there is a thread in the on_start function that loads all the .kv files while displaying a splash screen.

PLEASE I REALLY NEED HELP BECAUSE IT'S FOR A MASSIVE PROJECT

Elliot Garbus

unread,
Jun 5, 2022, 2:18:33 PM6/5/22
to kivy-...@googlegroups.com

Load the kv files on the main thread.

You could display the splash screen, then use Clock.schedule_once(), to let the splash screen display, then have the call back load your kv files.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAG%3DP-Ezb2eDWck_EMGHk29DKt8Xx4FBZV9eX1De06ed_j9y8LA%40mail.gmail.com.

 

Reply all
Reply to author
Forward
0 new messages