godot/node.py
def parse_xdot_drawing_directive(self, new):
        """ Parses the drawing directive, updating the node components.
        """
        components = XdotAttrParser().parse_xdot_data(new)

        max_x = max( [c.bounds[0] for c in components] + [1] )
        max_y = max( [c.bounds[1] for c in components] + [1] )

        pos_x = min( [c.x for c in components] )
        pos_y = min( [c.y for c in components] )

        move_to_origin(components)

        container = Container(auto_size=True,
            position=[pos_x-self.pos[0], pos_y-self.pos[1]],
            bgcolor="blue")
#        self.bounds = bounds=[max_x, max_y]

#        container = Container(fit_window=False, auto_size=True, bgcolor="blue")

        container.add( *components )

        self.drawing = container
def parse_xdot_drawing_directive(self, new):
        components = XdotAttrParser().parse_xdot_data(new)

        max_x = max( [c.bounds[0] for c in components] + [1] )
        max_y = max( [c.bounds[1] for c in components] + [1] )

        pos_x = min( [c.x for c in components] )
        pos_y = min( [c.y for c in components] )

        move_to_origin(components)

        container = Container(auto_size=True,
            position=[pos_x-self.pos[0], pos_y-self.pos[1]],
            bgcolor="blue")
#        self.bounds = bounds=[max_x, max_y]

#        container = Container(fit_window=False, auto_size=True, bgcolor="blue")

        container.add( *components )

        self.drawing = container
def parse_xdot_drawing_directive ( self , new ) : components = XdotAttrParser ( ) . parse_xdot_data ( new ) max_x = max ( [ c . bounds [ 0 ] for c in components ] + [ 1 ] ) max_y = max ( [ c . bounds [ 1 ] for c in components ] + [ 1 ] ) pos_x = min ( [ c . x for c in components ] ) pos_y = min ( [ c . y for c in components ] ) move_to_origin ( components ) container = Container ( auto_size = True , position = [ pos_x - self . pos [ 0 ] , pos_y - self . pos [ 1 ] ] , bgcolor = "blue" ) #        self.bounds = bounds=[max_x, max_y] #        container = Container(fit_window=False, auto_size=True, bgcolor="blue") container . add ( * components ) self . drawing = container
Parses the drawing directive, updating the node components.
Parses the drawing directive updating the node components .