Skip to content

Commit 82ccd14

Browse files
committedMar 29, 2015
解决回退键pop数字的问题
1 parent 813bc1b commit 82ccd14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎controllers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ def __append_number(self, event):
122122
pass # 其他时候的状态忽略掉
123123

124124
def __pop_number(self):
125-
if self.__status == 0:
125+
if self.__status.value == 0:
126126
self.__user.pop_mobile()
127127
print self.__user.str_mobile
128-
elif self.__status == 1:
128+
elif self.__status.value == 1:
129129
self.__user.pop_passwd()
130130
print self.__user.str_passwd
131131
else:
132-
pass
132+
self.__logger.warn("The status is invalid, status=%d" % self.__status.value)
133133

134134
def __on_outinput(self):
135135
"""

0 commit comments

Comments
 (0)
Please sign in to comment.