Пример #1
0
def get_bitmap_by_id(action_id, client=wal.ART_OTHER, size=wal.SIZE_16):
    art_id = get_art_by_id(action_id)
    if art_id:
        bmp = wal.provider_get_bitmap(art_id, client, size)
        if not bmp == wal.NullBitmap:
            return bmp
    return None
Пример #2
0
def get_bmp(parent, icon_id, tooltip=''):
    bmp = wal.provider_get_bitmap(icon_id, wal.ART_OTHER, wal.DEF_SIZE)
    if bmp == wal.NullBitmap:
        return None
    sb = wal.Bitmap(parent, bmp)
    if tooltip:
        sb.SetToolTipString(tooltip)
    return sb
Пример #3
0
def get_icon(icon_id, client=wal.ART_OTHER, size=wal.SIZE_16):
    bmp = wal.provider_get_bitmap(icon_id, client, size)
    if not bmp == wal.NullBitmap:
        return bmp
    return None