Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Kivy Screen Problems

37 views
Skip to first unread message

Bahaddin Şarman

unread,
Nov 30, 2024, 3:53:18 PM11/30/24
to Kivy users support
I used multiple screens in my project and added a navigation bar to my 4th screen. However, when transitioning between the navigation bar items, the text in the 'Settings' screen overlaps with the text from the 'Home' screen. I had a similar issue with the swiper as well. I’m sharing my project code. I would really appreciate it if you could help me. Thank you in advance.Screenshot_2024-11-30_23_47_20.pngScreenshot_2024-11-30_23_47_27.png
main.py
main.kv

ElliotG

unread,
Dec 2, 2024, 7:20:19 PM12/2/24
to Kivy users support
I've not had the time to investigate your issue.  I suggest you create a minimal example.  It looks like you may have instanced the HomeWindow screen multiple time. 

ElliotG

unread,
Dec 2, 2024, 8:59:22 PM12/2/24
to Kivy users support
The problem is your kv file is being loaded twice.
Notice the error in the log: [WARNING] [Lang        ] The file C:\Users\ellio\PycharmProjects\KivyHelpv230\eticaretbaris\main.kv is loaded multiples times, you might have unwanted behaviors.

Kivy will try to automatically load a kv file with the same name as the App.  Your app is named "MainApp", and the kv file is named "main.kv".  You are also manually loading the kv file.

Remove the line:
return Builder.load_file("main.kv")
that is found near the bottom of your main.py file.  This will fix the issue. 
Reply all
Reply to author
Forward
0 new messages