{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/517","repository_url":"https://api.github.com/repos/open-cogsci/OpenSesame","labels_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/517/comments","events_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/517/events","html_url":"https://github.com/open-cogsci/OpenSesame/issues/517","id":213778061,"node_id":"MDU6SXNzdWUyMTM3NzgwNjE=","number":517,"title":"Keyboard interaction required to refresh display on Mac OS with legacy backend","user":{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":200717,"node_id":"MDU6TGFiZWwyMDA3MTc=","url":"https://api.github.com/repos/open-cogsci/OpenSesame/labels/Unverified","name":"Unverified","color":"607D8B","default":false,"description":null},{"id":425538403,"node_id":"MDU6TGFiZWw0MjU1Mzg0MDM=","url":"https://api.github.com/repos/open-cogsci/OpenSesame/labels/Bug","name":"Bug","color":"FF9800","default":false,"description":null}],"state":"open","locked":false,"assignees":[{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false},{"login":"dschreij","id":689044,"node_id":"MDQ6VXNlcjY4OTA0NA==","avatar_url":"https://avatars.githubusercontent.com/u/689044?v=4","gravatar_id":"","url":"https://api.github.com/users/dschreij","html_url":"https://github.com/dschreij","followers_url":"https://api.github.com/users/dschreij/followers","following_url":"https://api.github.com/users/dschreij/following{/other_user}","gists_url":"https://api.github.com/users/dschreij/gists{/gist_id}","starred_url":"https://api.github.com/users/dschreij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschreij/subscriptions","organizations_url":"https://api.github.com/users/dschreij/orgs","repos_url":"https://api.github.com/users/dschreij/repos","events_url":"https://api.github.com/users/dschreij/events{/privacy}","received_events_url":"https://api.github.com/users/dschreij/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-03-13T14:10:52Z","updated_at":"2020-11-12T09:49:16Z","closed_at":null,"assignee":{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false},"author_association":"COLLABORATOR","issue_field_values":[],"type":null,"active_lock_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0},"issue_dependencies_summary":{"blocked_by":0,"total_blocked_by":0,"blocking":0,"total_blocking":0},"body":"I've noticed the following strange problem. (This may or may not be related to #481.)\r\n\r\nOn my Mac OS system, presenting `canvas` objects with only a sleep in between prevents the `canvas` from being shown. So the following code doesn't show anything on the display:\r\n\r\n~~~ python\r\nc = canvas()\r\nk = keyboard()\r\n\r\nfor i in range(5):\r\n\tc.clear()\r\n\tc.text(str(i))\r\n\tc.show()\r\n\tclock.sleep(1000)\r\n~~~\r\n\r\nHowever, as soon as there is some keyboard interaction after the `canvas` is shown, the display is refreshed. So the following code works fine:\r\n\r\n~~~ python\r\nc = canvas()\r\nk = keyboard()\r\n\r\nfor i in range(5):\r\n\tc.clear()\r\n\tc.text(str(i))\r\n\tc.show()\r\n\tk.flush() # This 'fixes' the problem\r\n\tclock.sleep(1000)\r\n~~~\r\n\r\nThis issue appears to be specific to the combination of Mac OS and the legacy backend. @dschreij, any thoughts?\r\n\r\nMy system:\r\n\r\n- Mac OS Sierra\r\n- OpenSesame 3.1.6-py2.7-2\r\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/517/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/517/timeline","performed_via_github_app":null,"state_reason":null,"pinned_comment":null}