def clickNext():
    global num1, num2, num3
    num1 += 1
    num2 += 1
    num3 += 1
    if (num1 > 9):
        num1 = 0
    if (num2 > 9):
        num2 = 0
    if (num3 > 9):
        num3 = 0
    photo = PhotoImage(file=('gif/' + fnameList[num1]))
    photo = photo.subsample(2, 2)
    photo1 = PhotoImage(file=('gif/' + fnameList[num2]))
    photo1 = photo1.subsample(4, 4)
    photo2 = PhotoImage(file=('gif/' + fnameList[num3]))
    photo2 = photo2.subsample(4, 4)
    pLabel.configure(image=photo)
    pLabel.image = photo
    pLabel1.configure(image=photo1)
    pLabel1.image = photo1
    pLabel2.configure(image=photo2)
    pLabel2.image = photo2
def clickNext():
    global num1, num2, num3
    num1 += 1
    num2 += 1
    num3 += 1
    if (num1 > 9):
        num1 = 0
    if (num2 > 9):
        num2 = 0
    if (num3 > 9):
        num3 = 0
    photo = PhotoImage(file=('gif/' + fnameList[num1]))
    photo = photo.subsample(2, 2)
    photo1 = PhotoImage(file=('gif/' + fnameList[num2]))
    photo1 = photo1.subsample(4, 4)
    photo2 = PhotoImage(file=('gif/' + fnameList[num3]))
    photo2 = photo2.subsample(4, 4)
    pLabel.configure(image=photo)
    pLabel.image = photo
    pLabel1.configure(image=photo1)
    pLabel1.image = photo1
    pLabel2.configure(image=photo2)
    pLabel2.image = photo2