wxPython question

M.E.Farmer mefjr75 at hotmail.com
Fri Dec 17 05:08:30 CET 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