Replies: 4 comments
|
Been fiddling with this for a few hours and havent solved it yet. However, I have a short program showing the problem so its reproducable.
If anyone can run this code and show what I am doing wrong that would be greatly appreciated!! Code below and also as a zip, as well as the icons |
|
solved one issue. One line added and so the main screen does read the updated data. However the start button still fires on its own. |
That is - to change all the data for the table... provide a complete definition of new data for the table.
The cause of the "block" you describe is covered in the BeeWare tutorial. In your case, you're not hitting an API that is blocking - but the underlying problem is the same - you're entering a loop that isn't releasing control to the GUI to allow the GUI to redraw. The general form of the fix will be the same - the loop that you're using to update the app needs to occasionally release control back to the GUI event loop. You can do this by calling The |
|
Hi, I know I must use async programming, but have little clue about howto do that exactly. but await asyncio.sleep(2) does. Thats good enough :) |

Hi,
I know I must use async programming, but have little clue about howto do that exactly.
Your example does not result in the screen updating in a while loop in my program.
but await asyncio.sleep(2) does. Thats good enough :)