godot/ui/graph_editor.py
def update_editor ( self ):
        """ Updates the editor when the object trait changes externally to the
            editor.
        """
        object = self.value
        # Graph the new object...
        canvas = self.factory.canvas
        if canvas is not None:
            for nodes_name in canvas.node_children:
                node_children = getattr(object, nodes_name)
                self._add_nodes(node_children)

            for edges_name in canvas.edge_children:
                edge_children = getattr(object, edges_name)
                self._add_edges(edge_children)

        # ...then listen for changes.
        self._add_listeners()
def update_editor ( self ):
        object = self.value
        # Graph the new object...
        canvas = self.factory.canvas
        if canvas is not None:
            for nodes_name in canvas.node_children:
                node_children = getattr(object, nodes_name)
                self._add_nodes(node_children)

            for edges_name in canvas.edge_children:
                edge_children = getattr(object, edges_name)
                self._add_edges(edge_children)

        # ...then listen for changes.
        self._add_listeners()
def update_editor ( self ) : object = self . value # Graph the new object... canvas = self . factory . canvas if canvas is not None : for nodes_name in canvas . node_children : node_children = getattr ( object , nodes_name ) self . _add_nodes ( node_children ) for edges_name in canvas . edge_children : edge_children = getattr ( object , edges_name ) self . _add_edges ( edge_children ) # ...then listen for changes. self . _add_listeners ( )
Updates the editor when the object trait changes externally to the
            editor.
Updates the editor when the object trait changes externally to the editor .