{"action":"created","issue":{"url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI/issues/946","repository_url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI","labels_url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI/issues/946/labels{/name}","comments_url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI/issues/946/comments","events_url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI/issues/946/events","html_url":"https://github.com/MikeTheWatchGuy/PySimpleGUI/issues/946","id":392161902,"node_id":"MDU6SXNzdWUzOTIxNjE5MDI=","number":946,"title":"How to handle events in multiple windows?","user":{"login":"OndoyManing","id":45813120,"node_id":"MDQ6VXNlcjQ1ODEzMTIw","avatar_url":"https://avatars2.githubusercontent.com/u/45813120?v=4","gravatar_id":"","url":"https://api.github.com/users/OndoyManing","html_url":"https://github.com/OndoyManing","followers_url":"https://api.github.com/users/OndoyManing/followers","following_url":"https://api.github.com/users/OndoyManing/following{/other_user}","gists_url":"https://api.github.com/users/OndoyManing/gists{/gist_id}","starred_url":"https://api.github.com/users/OndoyManing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OndoyManing/subscriptions","organizations_url":"https://api.github.com/users/OndoyManing/orgs","repos_url":"https://api.github.com/users/OndoyManing/repos","events_url":"https://api.github.com/users/OndoyManing/events{/privacy}","received_events_url":"https://api.github.com/users/OndoyManing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2018-12-18T13:42:20Z","updated_at":"2018-12-19T15:19:33Z","closed_at":null,"author_association":"NONE","body":"Let's say I have a window that has a button which will open a second window that contains a several Input() and a button that will act as submit. How do I handle the event of the button in the second window? I tried putting it on the same event loop like the rest but when I click on the button it does nothing.\r\n\r\n**EDIT**\r\nTerribly sorry for the title changes, I'm afraid I could not phrase it properly. I hope you still understand what I'm trying to say."},"comment":{"url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI/issues/comments/448631969","html_url":"https://github.com/MikeTheWatchGuy/PySimpleGUI/issues/946#issuecomment-448631969","issue_url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI/issues/946","id":448631969,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODYzMTk2OQ==","user":{"login":"MikeTheWatchGuy","id":13696193,"node_id":"MDQ6VXNlcjEzNjk2MTkz","avatar_url":"https://avatars1.githubusercontent.com/u/13696193?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeTheWatchGuy","html_url":"https://github.com/MikeTheWatchGuy","followers_url":"https://api.github.com/users/MikeTheWatchGuy/followers","following_url":"https://api.github.com/users/MikeTheWatchGuy/following{/other_user}","gists_url":"https://api.github.com/users/MikeTheWatchGuy/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeTheWatchGuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeTheWatchGuy/subscriptions","organizations_url":"https://api.github.com/users/MikeTheWatchGuy/orgs","repos_url":"https://api.github.com/users/MikeTheWatchGuy/repos","events_url":"https://api.github.com/users/MikeTheWatchGuy/events{/privacy}","received_events_url":"https://api.github.com/users/MikeTheWatchGuy/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T15:19:33Z","updated_at":"2018-12-19T15:19:33Z","author_association":"OWNER","body":"Also, for the future. always make a new layout definition at the same level that you create the window. In other words, you cannot define your layout 3 up above your while loop and try to use it multiple times.  Every time you call Window, call with a \"freshly made\" layout.\r\n"}}
{"actor":{"display_login":"MikeTheWatchGuy"}}