def draw(self, dc, f, **key): dc.SetPen(wx.Pen((255,0,0), width=2, style=wx.SOLID)) dc.DrawLines([f(*i) for i in self.line])