After having a play with guizero, it looked like the perfect thing we are looking for to display simple information updates.
But we (well I) cannot figure out how to refresh the display easily.
Everything seems to need to have no loops and be initiated by push buttons or sliders.
Am I missing something?
The use of app.display seems to kill off a program.
For example.
-Import app and text from guizero
-Add a textbox.
-Display a value in textbox
-LOOP
-- Add one to the value
-- update text box with .set
IF app.display is in the loop, it will halt at that and doesn't loop.
If it's before the loop it stops there and doesn't go past it and into the loop
If it after the loop, nothing gets updated as it has not yet created the GUI.*
So how do I do this with guizero
Create a display with text boxes.
Collect data values from a sensor
Show value in the text boxes
And repeat
(It's part of a bigger logging program based around the SenseHat Datalogging code, but this simple loop is the basis, get data, display data, save data...).
*Given it never leaves the while true: , app.display would never be run.