Once the Image object is packed into container and initialized with the container after web server starting up, the image resource is reloaded through a Timer thread code like
def check_status(self, update_interval):
with self.update_lock:
self.img_xxx.set_image(gui.load_resource('./res/yyy.png'))
Timer(update_interval, self.check_status, (update_interval,)).start()
But the image shown on the web page does not change accordingly.
Then what is the proper way to dynamically change(reload) such image?
Thanks in advance.
Once the Image object is packed into container and initialized with the container after web server starting up, the image resource is reloaded through a Timer thread code like
But the image shown on the web page does not change accordingly. Then what is the proper way to dynamically change(reload) such image? Thanks in advance.