Skip to content
Advertisement

Kivy Popup Shows Same Buttons as Main Screen

I’m very new to Kivy (been using for about four hours…) and I’ve hit a wall with popups.

I have a main screen which has four buttons in a float layout. On press down I want the ‘MOVE’ button to open a popup. Now I’ve got this working but the popup contains the same four buttons as my mainscreen.

This is my Python code:

JavaScript

and this is my .kv file:

JavaScript

Apologies in advance if the above is super dirty, I’m not very efficient :’)

All suggestions appreciated!

Advertisement

Answer

Okay so I don’t know why but it was the FloatLayout that was causing the problem.

Changed

JavaScript

to:

JavaScript

BoxLayout also got rid of the duplicate buttons but I couldn’t arrange the content on the popup the way I wanted in that layout.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement