Ticket #3755: button-order.patch

File button-order.patch, 1.6 KB (added by Steve VanDeBogart <vandebo-mythtvtrac@…>, 17 years ago)
  • mythburn.py

    old new  
    17591759        #Number of video items on this menu page
    17601760        itemsonthispage=0
    17611761
     1762        endbuttons = []
    17621763        #Loop through all the items on this menu page
    17631764        while itemnum <= numberofitems and itemsonthispage < itemsperpage:
    17641765            menuitem=menuitems[ itemsonthispage ]
     
    19271928                        button=dvddom.createElement("button")
    19281929                        button.setAttribute("name","previous")
    19291930                        button.appendChild(dvddom.createTextNode("{g2=1;jump menu %s;}" % page ))
    1930                         menupgc.appendChild(button)
    1931                         del button
     1931                        endbuttons.append(button)
    19321932
    19331933
    19341934                elif node.nodeName=="next":
     
    19361936                        button=dvddom.createElement("button")
    19371937                        button.setAttribute("name","next")
    19381938                        button.appendChild(dvddom.createTextNode("{g2=1;jump menu %s;}" % (page + 2)))
    1939                         menupgc.appendChild(button)
    1940                         del button
     1939                        endbuttons.append(button)
    19411940
    19421941            #On to the next item
    19431942            itemnum+=1
     
    19451944        #Move on to the next page
    19461945        page+=1
    19471946
     1947        for button in endbuttons:
     1948            menupgc.appendChild(button)
     1949            del button
     1950
    19481951    if wantIntro:
    19491952        #Menu creation is finished so we know how many pages were created
    19501953        #add to to jump to the correct one automatically