{"action":"opened","issue":{"url":"https://api.github.com/repos/boppreh/keyboard/issues/194","repository_url":"https://api.github.com/repos/boppreh/keyboard","labels_url":"https://api.github.com/repos/boppreh/keyboard/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/boppreh/keyboard/issues/194/comments","events_url":"https://api.github.com/repos/boppreh/keyboard/issues/194/events","html_url":"https://github.com/boppreh/keyboard/issues/194","id":344396587,"node_id":"MDU6SXNzdWUzNDQzOTY1ODc=","number":194,"title":"script triggered through hotkey causes error","user":{"login":"amloewi","id":622023,"node_id":"MDQ6VXNlcjYyMjAyMw==","avatar_url":"https://avatars0.githubusercontent.com/u/622023?v=4","gravatar_id":"","url":"https://api.github.com/users/amloewi","html_url":"https://github.com/amloewi","followers_url":"https://api.github.com/users/amloewi/followers","following_url":"https://api.github.com/users/amloewi/following{/other_user}","gists_url":"https://api.github.com/users/amloewi/gists{/gist_id}","starred_url":"https://api.github.com/users/amloewi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amloewi/subscriptions","organizations_url":"https://api.github.com/users/amloewi/orgs","repos_url":"https://api.github.com/users/amloewi/repos","events_url":"https://api.github.com/users/amloewi/events{/privacy}","received_events_url":"https://api.github.com/users/amloewi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-25T11:03:06Z","updated_at":"2018-07-25T11:03:06Z","closed_at":null,"author_association":"NONE","body":"I have a status bar app (made with the 'rumps' package) to which I'm trying to bind a hotkey. When the hotkey calls a simple function, like an alert, it works fine, but gives this warning:\r\n\r\n    python[58226:599749] WARNING: nextEventMatchingMask should only be\r\n    called from the Main Thread! This will throw an exception in the future.\r\n\r\nHowever when hotkey calls a function that triggers a pygame script, which is the point of the app, it produces this error:\r\n\r\n    python[58226:599749] pid(58226)/euid(0) is calling TIS/TSM in non-main thread\r\n    environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!\r\n\r\nIs this because of behavior of the hotkeys? Is there a way to call within the main thread?"}}
{"actor":{"display_login":"amloewi"}}