def jumpnext(pEvent, pFileNames=pFileNames, pLabel=TopLabel):
        'Event handler for next file button'
        lFileName = pLabel.cget("text").strip()
        lPos = pFileNames.index(lFileName)
        lPos += 1
        if lPos >= len(pFileNames):
            lPos -= 1
            pLabel.config(bg="#00FFFF")
            NextButton.config(state=DISABLED)
        else:
            pLabel.config(bg="#FF8800")
        PrevButton.config(state=NORMAL)
        lFileName = pFileNames[lPos].center(60)
        pLabel.config(text = lFileName)
Event handler for next file button
recipes/Python/577039_Moderately_Simple_Buttonbar/recipe-577039.py