(self, x0, y0, x1, y1, attr)
Draw a filled box between the given corner points.
Draw a filled box between the given corner points.
Draw a filled box between the given corner points .
def _draw_box_filled(self, x0, y0, x1, y1, attr):
        """Draw a filled box between the given corner points."""
        x0, y0 = self.graph_view.cutoff_coord(x0, y0)
        x1, y1 = self.graph_view.cutoff_coord(x1, y1)
        if y1 < y0:
            y0, y1 = y1, y0
        if x1 < x0:
            x0, x1 = x1, x0
        self.graph_view[y0:y1+1, x0:x1+1] = attr
def _draw_box_filled ( self , x0 , y0 , x1 , y1 , attr ) : x0 , y0 = self . graph_view . cutoff_coord ( x0 , y0 ) x1 , y1 = self . graph_view . cutoff_coord ( x1 , y1 ) if y1 < y0 : y0 , y1 = y1 , y0 if x1 < x0 : x0 , x1 = x1 , x0 self . graph_view [ y0 : y1 + 1 , x0 : x1 + 1 ] = attr