MCPcopy Index your code
hub / github.com/rawpython/remi / do_gui_update

Method do_gui_update

remi/server.py:493–503  ·  view source on GitHub ↗

This method gets called also by Timer, a new thread, and so needs to lock the update

(self)

Source from the content-addressed store, hash-verified

491 self._need_update_flag = True
492
493 def do_gui_update(self):
494 """ This method gets called also by Timer, a new thread, and so needs to lock the update
495 """
496 with self.update_lock:
497 changed_widget_dict = {}
498 self.root.repr(changed_widget_dict)
499 for widget in changed_widget_dict.keys():
500 html = changed_widget_dict[widget]
501 __id = str(widget.identifier)
502 self._send_spontaneous_websocket_message(_MSG_UPDATE + __id + ',' + to_websocket(self._overload(html, filename="internal")))
503 self._need_update_flag = False
504
505 def websocket_handshake_done(self, ws_instance_to_update):
506 msg = ""

Callers 2

_idle_loopMethod · 0.95
_need_updateMethod · 0.95

Calls 4

_overloadMethod · 0.95
to_websocketFunction · 0.85
reprMethod · 0.45

Tested by

no test coverage detected