{"action":"reopened","issue":{"url":"https://api.github.com/repos/jarvisteach/appJar/issues/544","repository_url":"https://api.github.com/repos/jarvisteach/appJar","labels_url":"https://api.github.com/repos/jarvisteach/appJar/issues/544/labels{/name}","comments_url":"https://api.github.com/repos/jarvisteach/appJar/issues/544/comments","events_url":"https://api.github.com/repos/jarvisteach/appJar/issues/544/events","html_url":"https://github.com/jarvisteach/appJar/issues/544","id":370213908,"node_id":"MDU6SXNzdWUzNzAyMTM5MDg=","number":544,"title":"Loops halt GUI updates, methods setStatusbar and setTextArea not run until loop exit","user":{"login":"tnsolley","id":12402712,"node_id":"MDQ6VXNlcjEyNDAyNzEy","avatar_url":"https://avatars2.githubusercontent.com/u/12402712?v=4","gravatar_id":"","url":"https://api.github.com/users/tnsolley","html_url":"https://github.com/tnsolley","followers_url":"https://api.github.com/users/tnsolley/followers","following_url":"https://api.github.com/users/tnsolley/following{/other_user}","gists_url":"https://api.github.com/users/tnsolley/gists{/gist_id}","starred_url":"https://api.github.com/users/tnsolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnsolley/subscriptions","organizations_url":"https://api.github.com/users/tnsolley/orgs","repos_url":"https://api.github.com/users/tnsolley/repos","events_url":"https://api.github.com/users/tnsolley/events{/privacy}","received_events_url":"https://api.github.com/users/tnsolley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-15T15:18:42Z","updated_at":"2018-10-20T07:13:03Z","closed_at":null,"author_association":"NONE","body":"# Bug Report\r\n---\r\n\r\n## Context\r\n---\r\nMaking a Test Program GUI that sends and receives serial commands to attached HW, and prints useful feedback/status updates as it goes to the Statusbar as well as to ScrolledTextAreas.\r\n\r\n## Expected Behaviour\r\n---\r\nThe Statusbar and ScrolledTextArea will be updates at *each* call to the Set function.\r\n\r\n## Actual Behaviour\r\n---\r\nStatusbar and ScrolledTextArea do not change until exiting the appropriate Loop; GUI freezes during this loop (as can be seen by the static Time indicator).\r\n\r\n## Any error messages produced by appJar\r\n---\r\nN/A.  \r\n\r\n## Sample code, demonstrating the issue\r\n---\r\nFull edited code;\r\n[showcase_edit.zip](https://github.com/jarvisteach/appJar/files/2479369/showcase_edit.zip)\r\n\r\n\r\n## What steps are needed to reproduce the bug\r\n---\r\n[Full code in <showcase_edit.py> file]\r\n### Summary:\r\nChange the default Statusbar to:\r\n`    # add a statusbar to show the time`\r\n`    app.addStatusbar(fields=3, side=\"RIGHT\")`\r\n`    app.setStatusbarWidth(50, 2)`\r\n`    app.setStatusbarBg(\"grey\", 2)`\r\n`    app.setStatusbarFg(\"white\", 2)`\r\n`    app.registerEvent(showTime)`\r\n`    app.stopFunction = logoutFunction`\r\n\r\nAdd the above functions to the `showcase.py` file, as well as the below Tabs;\r\n`      \"\"\"`\r\n`      TEST HW SCREEN`\r\n`      \"\"\"`\r\n`      # http://appjar.info/pythonWidgetGrouping/#scroll-pane`\r\n`      # http://appjar.info/inputWidgets/#textarea`\r\n`      ### <sendSetup()>, <setupQuery()>, <userCheck1()>, <userCheck2()>`\r\n`      # Perform HW stuff. Results of each printed to a Dialog screen.`\r\n`      with app.tab(\"HW\", bg=\"slategrey\", sticky=\"news\"):`\r\n`        with app.labelFrame(\"HW Feedback\"):`\r\n`          app.label(\"foo4\", \"Feedback:\", row=0, column=0, colspan=1, rowspan=1)`\r\n`          app._textMaker(\"lb4\", \"scroll\", row=1, column=0, colspan=2, rowspan=1, sticky=\"news\")`\r\n`          app.setTextAreaRelief(\"lb4\", \"raised\")`\r\n`          app.separator(row=31, column=0, colspan=1, sticky='news')`\r\n`          app.buttons([\"Run\",\"Retest\",\"Quit HW\"], s3, row=32, column=0)`\r\n`          app.buttons([\"To Results\"], t4, row=33, column=0) # Token for now` \r\n`        # End with-statement`\r\n`      # End with-statement  `\r\n\r\n## Version Information\r\n---\r\nPython 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:22:17) [MSC v.1500 32 bit (Intel)] on win32\r\nWindows 10\r\nAppJar 0.9.3\r\n"}}
{"actor":{"display_login":"jarvisteach"}}