How to dismiss the Kivy pop-up via a Button?

后端 未结 4 864
耶瑟儿~
耶瑟儿~ 2021-01-28 07:11

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\"

4条回答
  •  梦如初夏
    2021-01-28 07:46

    Try this: on_press = self.popup.dismiss() in replacement of on_press = self.popup_exit.dismiss

提交回复
热议问题