def add_polygon(self, xytab): tabpoints = [] for pos in xytab: tabpoints.append(wx.Point(pos[0] * self.scale, pos[1] * self.scale)) self._add(self.dc.DrawPolygon, (tabpoints, )) BaseDc.add_polygon(self, xytab)
def add_polygon(self, xytab): BaseDc.add_polygon(self, xytab)