code: def wxToPIL(wimg):
      '''convert a wxImage to a PIL Image'''
      from PIL import Image
      (w,h) = wimg.GetSize()
      d     = wimg.GetData()
      pimg  = Image.new("RGB", (w,h), color=1)
      pimg.fromstring(d)
      return pimf wxToPIL(wimg):
      '''convert a wxImage to a PIL Image'''
      from PIL import Image
      (w,h) = wimg.GetSize()
      d     = wimg.GetData()
      pimg  = Image.new("RGB", (w,h), color=1)
      pimg.fromstring(d)
      return pimg
docs: convert a wxImage to a PIL Image