more fix
This commit is contained in:
parent
6c7a197f26
commit
d0a310a31a
@ -23,14 +23,18 @@ class vmenuManager():
|
|||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
pass
|
pass
|
||||||
def setCurrMenu(self, currMenu = ''):
|
def setCurrMenu(self, currMenu = ''):
|
||||||
try:
|
if currMenu == '':
|
||||||
t = self.menuDict[currMenu]
|
|
||||||
l = list(menuDict.keys())
|
|
||||||
self.currIndex = [l.index(currMenu)]
|
|
||||||
self.currMenu = currMenu
|
|
||||||
except:
|
|
||||||
self.currIndex = None
|
self.currIndex = None
|
||||||
self.currMenu = ''
|
self.currMenu = ''
|
||||||
|
else:
|
||||||
|
try:
|
||||||
|
t = self.menuDict[currMenu]
|
||||||
|
l = list(menuDict.keys())
|
||||||
|
except:
|
||||||
|
return
|
||||||
|
|
||||||
|
self.currIndex = [l.index(currMenu)]
|
||||||
|
self.currMenu = currMenu
|
||||||
def getCurrMenu(self):
|
def getCurrMenu(self):
|
||||||
return self.currMenu
|
return self.currMenu
|
||||||
def getActive(self):
|
def getActive(self):
|
||||||
@ -100,8 +104,11 @@ class vmenuManager():
|
|||||||
def decLevel(self):
|
def decLevel(self):
|
||||||
if self.currIndex == None:
|
if self.currIndex == None:
|
||||||
return
|
return
|
||||||
if len(self.currIndex) == 1:
|
if self.currMenu != '':
|
||||||
return
|
if len(self.currIndex) == 2:
|
||||||
|
return
|
||||||
|
elif len(self.currIndex) == 1:
|
||||||
|
return
|
||||||
self.currIndex = self.currIndex[:len(self.currIndex) - 1]
|
self.currIndex = self.currIndex[:len(self.currIndex) - 1]
|
||||||
print(self.currIndex)
|
print(self.currIndex)
|
||||||
def nextIndex(self):
|
def nextIndex(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user