|
@@ -78,7 +78,10 @@ class CTMenu(CBaseLog):
|
|
self.info(u"lastOpa.pos=%d" % self.__lastOpa.pos)
|
|
self.info(u"lastOpa.pos=%d" % self.__lastOpa.pos)
|
|
diffValue = self.__lastOpa.pos - self.__curOpa.getPathLength()
|
|
diffValue = self.__lastOpa.pos - self.__curOpa.getPathLength()
|
|
# 前者位置大于当前opa长度;
|
|
# 前者位置大于当前opa长度;
|
|
- if diffValue > 0:
|
|
|
|
|
|
+ if diffValue == 0:
|
|
|
|
+ if self.__curOpa.isOptionInPaths(self.__lastOpa.pos, self.__lastOpa.optionValue) is True:
|
|
|
|
+ self.__curOpa.setCurPos(self.__lastOpa.pos)
|
|
|
|
+ elif diffValue > 0:
|
|
# 判断路径是否为子集关系;
|
|
# 判断路径是否为子集关系;
|
|
if self.__lastOpa.isOptionInPaths(self.__lastOpa.getPathLength(), self.__curOpa.curOptionName) is True:
|
|
if self.__lastOpa.isOptionInPaths(self.__lastOpa.getPathLength(), self.__curOpa.curOptionName) is True:
|
|
while diffValue > 0:
|
|
while diffValue > 0:
|
|
@@ -86,7 +89,7 @@ class CTMenu(CBaseLog):
|
|
self.__lastOpa.back2ParentNode()
|
|
self.__lastOpa.back2ParentNode()
|
|
# 同时设置当前opa位置;
|
|
# 同时设置当前opa位置;
|
|
self.__curOpa.setCurPos(self.__curOpa.getPathLength())
|
|
self.__curOpa.setCurPos(self.__curOpa.getPathLength())
|
|
- else:
|
|
|
|
|
|
+ elif diffValue < 0:
|
|
# 判断路径是否为子集关系;
|
|
# 判断路径是否为子集关系;
|
|
if self.__curOpa.isOptionInPaths(self.__lastOpa.pos, self.__lastOpa.curOptionName) is True:
|
|
if self.__curOpa.isOptionInPaths(self.__lastOpa.pos, self.__lastOpa.curOptionName) is True:
|
|
self.__curOpa.setCurPos(self.__lastOpa.pos)
|
|
self.__curOpa.setCurPos(self.__lastOpa.pos)
|
|
@@ -693,12 +696,12 @@ if __name__ == "__main__":
|
|
|
|
|
|
ml.openOption('picture_preset')
|
|
ml.openOption('picture_preset')
|
|
ml.setValue('movie')
|
|
ml.setValue('movie')
|
|
|
|
+ print "--------------------------------------------------"
|
|
ml.openOption('picture_preset')
|
|
ml.openOption('picture_preset')
|
|
ml.setValue('dynamic')
|
|
ml.setValue('dynamic')
|
|
print "--------------------------------------------------"
|
|
print "--------------------------------------------------"
|
|
-
|
|
|
|
- # ml.openOption('brightness')
|
|
|
|
- # ml.setValue(90)
|
|
|
|
|
|
+ ml.openOption('brightness')
|
|
|
|
+ ml.setValue(10)
|
|
|
|
|
|
ml.back2Home()
|
|
ml.back2Home()
|
|
|
|
|