def Draw(self,dc): dc.SetPen(wx.Pen(self.P_color)) for i in range(0, len(self.xList)-1): dc.DrawLine(self.xList[i], self.yList[i], self.xList[i+1],self.yList[i+1])