def add_subgraph(self, info):
        """ Handles adding a Subgraph to the main graph.
        """
        if not info.initialized:
            return

        graph = self._request_graph(info.ui.control)

        if graph is not None:
            subgraph = Subgraph()#root=graph, parent=graph)
            retval = subgraph.edit_traits(parent = info.ui.control,
                                          kind   = "livemodal")
            if retval.result:
                graph.subgraphs.append(subgraph)
def add_subgraph(self, info):
        
        if not info.initialized:
            return

        graph = self._request_graph(info.ui.control)

        if graph is not None:
            subgraph = Subgraph()
            retval = subgraph.edit_traits(parent = info.ui.control,
                                          kind   = "livemodal")
            if retval.result:
                graph.subgraphs.append(subgraph)
def add_subgraph ( self , info ) : if not info . initialized : return graph = self . _request_graph ( info . ui . control ) if graph is not None : subgraph = Subgraph ( ) #root=graph, parent=graph) retval = subgraph . edit_traits ( parent = info . ui . control , kind = "livemodal" ) if retval . result : graph . subgraphs . append ( subgraph )
Handles adding a Subgraph to the main graph.
Handles adding a Subgraph to the main graph .