menu range fix
parent
af57c4b8be
commit
f3a5459ef7
|
@ -259,7 +259,7 @@ class CursedMenu(object):
|
||||||
return self.options[-1]
|
return self.options[-1]
|
||||||
|
|
||||||
# this is a number; check to see if we can set it
|
# this is a number; check to see if we can set it
|
||||||
if user_in >= ord('1') and user_in <= ord(str(min(9,len(self.options)+1))):
|
if user_in >= ord('1') and user_in <= ord(str(min(6,len(self.options)))):
|
||||||
self.selected = user_in - ord('0') - 1 # convert keypress back to a number, then subtract 1 to get index
|
self.selected = user_in - ord('0') - 1 # convert keypress back to a number, then subtract 1 to get index
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue