{"action":"closed","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/4723","repository_url":"https://api.github.com/repos/kivy/kivy","labels_url":"https://api.github.com/repos/kivy/kivy/issues/4723/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/4723/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/4723/events","html_url":"https://github.com/kivy/kivy/issues/4723","id":188765670,"number":4723,"title":"on_request close","user":{"login":"picibucor","id":1676457,"avatar_url":"https://avatars.githubusercontent.com/u/1676457?v=3","gravatar_id":"","url":"https://api.github.com/users/picibucor","html_url":"https://github.com/picibucor","followers_url":"https://api.github.com/users/picibucor/followers","following_url":"https://api.github.com/users/picibucor/following{/other_user}","gists_url":"https://api.github.com/users/picibucor/gists{/gist_id}","starred_url":"https://api.github.com/users/picibucor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/picibucor/subscriptions","organizations_url":"https://api.github.com/users/picibucor/orgs","repos_url":"https://api.github.com/users/picibucor/repos","events_url":"https://api.github.com/users/picibucor/events{/privacy}","received_events_url":"https://api.github.com/users/picibucor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-11T13:58:47Z","updated_at":"2016-11-11T14:42:58Z","closed_at":"2016-11-11T14:42:58Z","body":"Please help me out.\r\n\r\nmy code is below. Before exit, I want to be sure, my user wants to do so. It does not work, and I don't know why.\r\n\r\n\r\n> from kivy.app import App\r\n> from kivy.uix.label import Label\r\n> from kivy.uix.boxlayout import BoxLayout\r\n> from kivy.uix.button import Button\r\n> from kivy.uix.popup import Popup\r\n> from kivy.config import Config, ConfigParser\r\n> from kivy.core.window import Window, WindowBase\r\n> \r\n> class ChildApp(App):\r\n> \r\n>     def build(self):\r\n>         Config.set('kivy', 'exit_on_escape', '0')\r\n>         return Label(text='Child')\r\n> \r\n>     def on_request_close(self):\r\n>         self.textpopup(title='Exit', text='Are you sure?')\r\n> \r\n>     def textpopup(self, title='', text=''):\r\n>         \"\"\"Open the pop-up with the name.\r\n> \r\n>         :param title: title of the pop-up to open\r\n>         :type title: str\r\n>         :param text: main text of the pop-up to open\r\n>         :type text: str\r\n>         :rtype: None\r\n>         \"\"\"\r\n>         box = BoxLayout(orientation='vertical')\r\n> \r\n>         box.add_widget(Label(text=text))\r\n> \r\n>         mybutton = Button(text='OK', size_hint=(1, 0.25))\r\n>         box.add_widget(mybutton)\r\n> \r\n>         popup = Popup(title=title, content=box, size_hint=(None, None), size= (600, 300))\r\n>         mybutton.bind(on_release= Window.close)\r\n> \r\n>         popup.open()\r\n> \r\n> if __name__ == '__main__':\r\n>     ChildApp().run()\r\n"}}
{"actor":{"display_login":"picibucor"}}