Minor changes.
This commit is contained in:
parent
d749642608
commit
29a9bd5056
4
gempost
4
gempost
|
@ -43,9 +43,9 @@ def menuFunction(menu = []):
|
|||
pageIndex = 1 # current page
|
||||
imenu = [] # internal list that is modified to only contain items of a specific page
|
||||
|
||||
endOfPage = pageLength # separate variable is required for this because the last page might have lesser entries than {pageLength}
|
||||
|
||||
imenu = menu[((pageLength)*(pageIndex-1)):(pageLength*pageIndex)]
|
||||
|
||||
endOfPage = len(imenu) # separate variable is required for this because the last page might have lesser entries than {pageLength}
|
||||
|
||||
if (menu == []): # do nothing if list is empty
|
||||
curses.endwin()
|
||||
|
|
Loading…
Reference in New Issue