# Icon Bitmaps - generated by encode_bitmaps.py
#----------------------------------------------------------------------------
from wx import ImageFromStream, BitmapFromImage
-from wx import EmptyIcon
import cStringIO
return ImageFromStream(stream)
def getPythonIcon():
- icon = EmptyIcon()
- icon.CopyFromBitmap(getPythonBitmap())
- return icon
+ return wx.IconFromBitmap(getPythonBitmap())