MCPcopy Create free account
hub / github.com/bhowiebkr/PyFlowGraph / apply_gui_state

Method apply_gui_state

src/core/node.py:510–520  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

508 traceback.print_exc()
509
510 def apply_gui_state(self, state):
511 if not self.gui_get_values_code or not self.gui_widgets or not state:
512 return
513 try:
514 scope = {"widgets": self.gui_widgets, "node": self}
515 exec(self.gui_get_values_code, scope)
516 state_setter = scope.get("set_initial_state")
517 if callable(state_setter):
518 state_setter(self.gui_widgets, state)
519 except Exception as e:
520 pass
521
522 def serialize(self):
523 return {

Callers 3

undoMethod · 0.95
executeMethod · 0.80
deserializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected