{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/3853","repository_url":"https://api.github.com/repos/kivy/kivy","labels_url":"https://api.github.com/repos/kivy/kivy/issues/3853/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/3853/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/3853/events","html_url":"https://github.com/kivy/kivy/issues/3853","id":123087902,"number":3853,"title":"TypeError: key_up() missing 2 required positional arguments: 'text' and 'modifiers'","user":{"login":"dessant","id":7513068,"avatar_url":"https://avatars.githubusercontent.com/u/7513068?v=3","gravatar_id":"","url":"https://api.github.com/users/dessant","html_url":"https://github.com/dessant","followers_url":"https://api.github.com/users/dessant/followers","following_url":"https://api.github.com/users/dessant/following{/other_user}","gists_url":"https://api.github.com/users/dessant/gists{/gist_id}","starred_url":"https://api.github.com/users/dessant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dessant/subscriptions","organizations_url":"https://api.github.com/users/dessant/orgs","repos_url":"https://api.github.com/users/dessant/repos","events_url":"https://api.github.com/users/dessant/events{/privacy}","received_events_url":"https://api.github.com/users/dessant/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kivy/kivy/labels/easy","name":"easy","color":"e102d8"},{"url":"https://api.github.com/repos/kivy/kivy/labels/examples","name":"examples","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-19T14:28:35Z","updated_at":"2016-03-03T17:11:36Z","closed_at":null,"body":"https://github.com/kivy/kivy/blob/master/examples/keyboard/main.py#L204\r\nThe callback method assumes a different event signature for on_key_up, note that both Keyboard and Window have this event, and they have different signatures.\r\n\r\n```python\r\n Traceback (most recent call last):\r\n   File \"E:\\dev\\envs\\py34_x86\\kivy\\examples\\keyboard\\main.py\", line 220, in <module>\r\n     KeyboardDemo().run()\r\n   File \"e:\\dev\\envs\\py34_x86\\kivy\\kivy\\app.py\", line 828, in run\r\n     runTouchApp()\r\n   File \"e:\\dev\\envs\\py34_x86\\kivy\\kivy\\base.py\", line 487, in runTouchApp\r\n     EventLoop.window.mainloop()\r\n   File \"e:\\dev\\envs\\py34_x86\\kivy\\kivy\\core\\window\\window_sdl2.py\", line 613, in mainloop\r\n     self._mainloop()\r\n   File \"e:\\dev\\envs\\py34_x86\\kivy\\kivy\\core\\window\\window_sdl2.py\", line 546, in _mainloop\r\n     self.dispatch('on_key_up', key, scancode)\r\n   File \"kivy\\_event.pyx\", line 714, in kivy._event.EventDispatcher.dispatch (kivy\\_event.c:7654)\r\n   File \"kivy\\_event.pyx\", line 1224, in kivy._event.EventObservers.dispatch (kivy\\_event.c:13497)\r\n   File \"kivy\\_event.pyx\", line 1148, in kivy._event.EventObservers._dispatch (kivy\\_event.c:13023)\r\n   File \"e:\\dev\\envs\\py34_x86\\kivy\\kivy\\core\\window\\__init__.py\", line 163, in _on_window_key_up\r\n     return self.dispatch('on_key_up', keycode)\r\n   File \"kivy\\_event.pyx\", line 714, in kivy._event.EventDispatcher.dispatch (kivy\\_event.c:7654)\r\n   File \"kivy\\_event.pyx\", line 1224, in kivy._event.EventObservers.dispatch (kivy\\_event.c:13497)\r\n   File \"kivy\\_event.pyx\", line 1148, in kivy._event.EventObservers._dispatch (kivy\\_event.c:13023)\r\n TypeError: key_up() missing 2 required positional arguments: 'text' and 'modifiers'\r\n```"},"comment":{"url":"https://api.github.com/repos/kivy/kivy/issues/comments/191864818","html_url":"https://github.com/kivy/kivy/issues/3853#issuecomment-191864818","issue_url":"https://api.github.com/repos/kivy/kivy/issues/3853","id":191864818,"user":{"login":"CuriousLearner","id":8039608,"avatar_url":"https://avatars.githubusercontent.com/u/8039608?v=3","gravatar_id":"","url":"https://api.github.com/users/CuriousLearner","html_url":"https://github.com/CuriousLearner","followers_url":"https://api.github.com/users/CuriousLearner/followers","following_url":"https://api.github.com/users/CuriousLearner/following{/other_user}","gists_url":"https://api.github.com/users/CuriousLearner/gists{/gist_id}","starred_url":"https://api.github.com/users/CuriousLearner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CuriousLearner/subscriptions","organizations_url":"https://api.github.com/users/CuriousLearner/orgs","repos_url":"https://api.github.com/users/CuriousLearner/repos","events_url":"https://api.github.com/users/CuriousLearner/events{/privacy}","received_events_url":"https://api.github.com/users/CuriousLearner/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T17:11:36Z","updated_at":"2016-03-03T17:11:36Z","body":"Hi, I've been able to reproduce the issue and after some inspection, I've seen that method is getting 5 arguments, one of them is keycode again and another one is an empty list. Also I see there is a bind method which is essentially binding the keyboard events to kivy. So, should I just get all arguments in that method and do nothing with them, or how could I go around calling of this method.\r\n\r\nWhat I've done to make this work right now is:\r\n```\r\ndef key_up(self, keyboard, keycode, *args):\r\n        \"\"\" The callback function that catches keyboard events. \"\"\"\r\n        self.displayLabel.text += u\" (up {0})\".format(keycode)\r\n```\r\n\r\nCan you please guide me further?"}}