def icon_bundle(fn):
    icons = wx.IconBundle()
    for sz in [16, 32, 48]:
        try:
            icon = wx.Icon(fn, wx.BITMAP_TYPE_ICO, desiredWidth=sz, desiredHeight=sz)
            icons.AddIcon(icon)
        except:
            pass
    return icons
wx doesn't automatically load all the different sizes from a .ico :(
dataset/ETHPy150Open shish/eve-mlp/eve_mlp/gui/common.py/icon_bundle