code: def get_pen_from_data(pendata):
      
  
      pen_color = wx.Colour()
      pen_color.SetRGB(pendata[0])
      pen = wx.Pen(pen_color, *pendata[1:])
      pen.SetJoin(wx.JOIN_MITER)
  
      return pen
docs: Returns wx.Pen from pendata attribute list