Your root widget, BackgroundImage is derived from Widget. Change this to a Layout, you could remove this widget, and make the AnchorLayout the root widget. You can also instance with root widget in kv.
If you need more help and for the future, please attach or paste in code, not pictures of code.
From: Ben Lawton
Sent: Sunday, September 26, 2021 4:53 AM
To: Kivy users support
Subject: [kivy-users] Anchor Layout only works in bottom left corner
I'm new to Kivy and am just trying to make a simple app. I have set a background using the canvas feature and then I am trying to add a widget in the centre of the screen using the anchor layout. However, when I try and anchor the widget It anchors it to a tiny portion of the screen. Here is the code and what it does:
The .py file:
The .kv file:
And what it does:
--
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/1c547a06-3f31-4157-ad25-f544eb90b03cn%40googlegroups.com.