wxPython question

M.E.Farmer mefjr75 at hotmail.com
Thu Dec 16 23:08:30 EST 2004


Messed up it does need the dots.
This should handle bmp ico png gif and several other formats.
Still need to be 32 by 32

wx.InitAllImageHandlers()
image = wx.Image(file, wx.BITMAP_TYPE_ANY)
image = image.ConvertToBitmap()

icon = wxEmptyIcon()
icon.CopyFromBitmap(image)

frame.SetIcon(icon)

Hth,
 M.E.Farmer




More information about the Python-list mailing list