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

Method _need_update

remi/server.py:477–491  ·  view source on GitHub ↗
(self, emitter=None, child_ignore_update=False)

Source from the content-addressed store, hash-verified

475 pass
476
477 def _need_update(self, emitter=None, child_ignore_update=False):
478 if child_ignore_update:
479 #the widgets tree is processed to make it available for a intentional
480 # client update and to reset the changed flags of changed widget.
481 # Otherwise it will be updated on next update cycle.
482 changed_widget_dict = {}
483 self.root.repr(changed_widget_dict)
484 return
485
486 if self.update_interval == 0:
487 #no interval, immadiate update
488 self.do_gui_update()
489 else:
490 #will be updated after idle loop
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

Callers

nothing calls this directly

Calls 2

do_gui_updateMethod · 0.95
reprMethod · 0.45

Tested by

no test coverage detected