def DrawBorder(self, dc): """ Draw the border of the shape, for fast rendering. """ Shape.DrawBorder(self, dc) sx, sy = self.GetPosition() sx, sy = sx - self._ox, sy - self._oy width, height = self.GetSize() dc.DrawRectangle(sx, sy, width, height)
def DrawBorder(self, dc: DC): """ Draw the border of the shape, for fast rendering. Args: dc """ if self._selected: RectangleShape.DrawBorder(self, dc) else: Shape.DrawBorder(self, dc)