(self, x0, y0, x1, y1, attr, pattern=0xffff)
Draw an empty box between the given corner points.
Draw an empty box between the given corner points.
Draw an empty box between the given corner points .
def _draw_box(self, x0, y0, x1, y1, attr, pattern=0xffff):
        """Draw an empty box between the given corner points."""
        x0, y0 = self.graph_view.cutoff_coord(x0, y0)
        x1, y1 = self.graph_view.cutoff_coord(x1, y1)
        mask = 0x8000
        mask = self._draw_straight(x1, y1, x0, y1, attr, pattern, mask)
        mask = self._draw_straight(x1, y0, x0, y0, attr, pattern, mask)
        # verticals always drawn top to bottom
        if y0 < y1:
            y0, y1 = y1, y0
        mask = self._draw_straight(x1, y1, x1, y0, attr, pattern, mask)
        mask = self._draw_straight(x0, y1, x0, y0, attr, pattern, mask)
def _draw_box ( self , x0 , y0 , x1 , y1 , attr , pattern = 0xffff ) : x0 , y0 = self . graph_view . cutoff_coord ( x0 , y0 ) x1 , y1 = self . graph_view . cutoff_coord ( x1 , y1 ) mask = 0x8000 mask = self . _draw_straight ( x1 , y1 , x0 , y1 , attr , pattern , mask ) mask = self . _draw_straight ( x1 , y0 , x0 , y0 , attr , pattern , mask ) # verticals always drawn top to bottom if y0 < y1 : y0 , y1 = y1 , y0 mask = self . _draw_straight ( x1 , y1 , x1 , y0 , attr , pattern , mask ) mask = self . _draw_straight ( x0 , y1 , x0 , y0 , attr , pattern , mask )