def load_bitmap(filename, width=-1, height=-1):
    i = load_icon(filename, width, height)
    b = wx.EmptyBitmap(i.GetWidth(), i.GetHeight())
    b.CopyFromIcon(i)
    return b
load icon as a wx.Bitmap
dataset/ETHPy150Open manahl/mdf/mdf/viewer/common.py/load_bitmap