{"action":"created","issue":{"url":"https://api.github.com/repos/dddomodossola/remi/issues/58","repository_url":"https://api.github.com/repos/dddomodossola/remi","labels_url":"https://api.github.com/repos/dddomodossola/remi/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/dddomodossola/remi/issues/58/comments","events_url":"https://api.github.com/repos/dddomodossola/remi/issues/58/events","html_url":"https://github.com/dddomodossola/remi/issues/58","id":115944404,"number":58,"title":"Add userdata to callbacks","user":{"login":"frsh2fourty","id":9558456,"avatar_url":"https://avatars.githubusercontent.com/u/9558456?v=3","gravatar_id":"","url":"https://api.github.com/users/frsh2fourty","html_url":"https://github.com/frsh2fourty","followers_url":"https://api.github.com/users/frsh2fourty/followers","following_url":"https://api.github.com/users/frsh2fourty/following{/other_user}","gists_url":"https://api.github.com/users/frsh2fourty/gists{/gist_id}","starred_url":"https://api.github.com/users/frsh2fourty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frsh2fourty/subscriptions","organizations_url":"https://api.github.com/users/frsh2fourty/orgs","repos_url":"https://api.github.com/users/frsh2fourty/repos","events_url":"https://api.github.com/users/frsh2fourty/events{/privacy}","received_events_url":"https://api.github.com/users/frsh2fourty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2015-11-09T19:13:31Z","updated_at":"2016-10-18T06:31:11Z","closed_at":null,"body":"Is there a way to pass multiple variables from multiple text inputs to a single listener function?\r\n\r\nMy thought was to set up an on_change listener for each text input but use the same listener function name for each one, then when writing the actual listener function pass all the variables you want that function to use, for example:\r\nself.input1 = gui.TextInput(200, 20)\r\nself.input1.set_on_change_listener(self, 'listener_function')\r\nself.input2 = gui.TextInput(200, 50)\r\nself.input2.set_on_change_listener(self, 'listener_function')\r\ndef listener_function(self, var1, var2)\r\n    self.lbl.set_text(str(var1) + ' & ' + str(var2)\r\n\r\nHowever, doing this breaks the function so it won't populate the 'lbl' or do anything else defined in that function but doesn't return any errors."},"comment":{"url":"https://api.github.com/repos/dddomodossola/remi/issues/comments/254418863","html_url":"https://github.com/dddomodossola/remi/issues/58#issuecomment-254418863","issue_url":"https://api.github.com/repos/dddomodossola/remi/issues/58","id":254418863,"user":{"login":"dddomodossola","id":341675,"avatar_url":"https://avatars.githubusercontent.com/u/341675?v=3","gravatar_id":"","url":"https://api.github.com/users/dddomodossola","html_url":"https://github.com/dddomodossola","followers_url":"https://api.github.com/users/dddomodossola/followers","following_url":"https://api.github.com/users/dddomodossola/following{/other_user}","gists_url":"https://api.github.com/users/dddomodossola/gists{/gist_id}","starred_url":"https://api.github.com/users/dddomodossola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dddomodossola/subscriptions","organizations_url":"https://api.github.com/users/dddomodossola/orgs","repos_url":"https://api.github.com/users/dddomodossola/repos","events_url":"https://api.github.com/users/dddomodossola/events{/privacy}","received_events_url":"https://api.github.com/users/dddomodossola/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T06:31:10Z","updated_at":"2016-10-18T06:31:10Z","body":"@nzjrs I understand John. This should be simple to implement. But I would like to have a solution that does not affect the actual usage of the library, just to say, is it ok to have an extra **optional** parameter userdata to set_on_xx_listener? If so, I can implement this rapidly."}}
{"actor":{"display_login":"dddomodossola"}}