godot/ui/graph_view_model.py
def new_model(self, info):
        """ Handles the new Graph action. """

        if info.initialized:
            retval = confirm(parent  = info.ui.control,
                             message = "Replace existing graph?",
                             title   = "New Graph",
                             default = YES)
            if retval == YES:
                self.model = Graph()
def new_model(self, info):
        if info.initialized:
            retval = confirm(parent  = info.ui.control,
                             message = "Replace existing graph?",
                             title   = "New Graph",
                             default = YES)
            if retval == YES:
                self.model = Graph()
def new_model ( self , info ) : if info . initialized : retval = confirm ( parent = info . ui . control , message = "Replace existing graph?" , title = "New Graph" , default = YES ) if retval == YES : self . model = Graph ( )
Handles the new Graph action.
Handles the new Graph action .