def DrawClosedArc(dc: wx.DC, shape: Shape): (x, y, w, h) = shape.EnclosingRectangle() dc.Pen = shape.Pen() dc.DrawEllipticArc(x, y, w, h, 0, 360)
def FullySurrounds(self, s: Shape): (x, y, w, h) = self.EnclosingRectangle() (xs, ys, ws, hs) = s.EnclosingRectangle() return x < xs and y < ys and (x + w) > (xs + ws) and (y + h) > (ys + hs)