I have a pop-up created with Kivy, which contains 2 buttons. User can dismiss the pop-up by pressing outside of the pop-up area (auto_dismiss = True), or by clicking the \"No\"
You can solve this issue by a lazy function
on_press = lambda *args: self.popup_exit.dismiss()
This way, the lookup will occur only when the button is pressed and popup_exit is already in place...