def RequestSelection(self, title, icon, items, default):
print "Title: (%s)" % (title)
print "Icon: (%d)" % (icon)
- index = 0;
+ index = 0
for item in items:
print "%d. %s (icon: %d)" % (index, item[0], item[1])
index += 1
elif select == 't':
raise EndSession("User wishes to terminate session")
else:
- return int(select);
+ return int(select)
@dbus.service.method("org.ofono.SimToolkitAgent",
in_signature="syb", out_signature="",
async_callbacks=("reply_func",
- "error_func"))
+ "error_func"))
def DisplayText(self, title, icon, urgent, reply_func, error_func):
print "DisplayText (%s)" % (title)
print "Icon: (%d)" % (icon)
print "Hide typing: (%s)" % (hide_typing)
print "Enter characters, min: %d, max: %d:" % (min_chars,
max_chars)
- userin = raw_input("");
+ userin = raw_input("")
return userin
print "Hide typing: (%s)" % (hide_typing)
print "Enter digits, min: %d, max: %d:" % (min_chars,
max_chars)
- userin = raw_input("'t' terminates, 'b' goes back:");
+ userin = raw_input("'t' terminates, 'b' goes back:")
if userin == 'b':
raise GoBack("User wishes to go back")
key = raw_input("Enter Key (t, b):")
if key == 'b':
- raise GoBack("User wishes to go back");
+ raise GoBack("User wishes to go back")
elif key == 't':
- raise EndSession("User wishes to terminate session");
+ raise EndSession("User wishes to terminate session")
else:
return key
key = raw_input("Enter Digit (t, b):")
if key == 'b':
- raise GoBack("User wishes to go back");
+ raise GoBack("User wishes to go back")
elif key == 't':
- raise EndSession("User wishes to terminate session");
+ raise EndSession("User wishes to terminate session")
else:
return key
key = raw_input("Quick digit (0-9, *, #, t, b):")
if key == 'b':
- raise GoBack("User wishes to go back");
+ raise GoBack("User wishes to go back")
elif key == 't':
- raise EndSession("User wishes to terminate session");
+ raise EndSession("User wishes to terminate session")
else:
return key
key = raw_input("Enter Confirmation (t, b, y, n):")
if key == 'b':
- raise GoBack("User wishes to go back");
+ raise GoBack("User wishes to go back")
elif key == 't':
- raise EndSession("User wishes to terminate session");
+ raise EndSession("User wishes to terminate session")
elif key == 'y':
return True
else:
key = raw_input("Enter Confirmation (t, y, n):")
if key == 't':
- raise EndSession("User wishes to terminate session");
+ raise EndSession("User wishes to terminate session")
elif key == 'y':
return True
else:
key = raw_input("Enter Confirmation (t, y, n):")
if key == 't':
- raise EndSession("User wishes to terminate session");
+ raise EndSession("User wishes to terminate session")
elif key == 'y':
return True
else: