def value(mnemonic):
    codes, mnemonics = zip(*MNEMONIC_TABLE)
    return mnemonics.index(mnemonic.upper())
Switch the button to a custom image type of button (rather than a
dataset/ETHPy150Open base4sistemas/pyescpos/escpos/asc.py/value--crossover with--dataset/ETHPy150Open jonaslorander/OctoPiPanel/pygbutton.py/PygButton.setSurfaces