list-modems: Pretty-print main menu

This commit is contained in:
Andrzej Zaborowski 2010-08-17 17:36:59 +02:00 committed by Denis Kenzior
parent c8c8116db4
commit df35a66c64
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ for path in properties["Modems"]:
"MicrophoneVolume",
"SpeakerVolume"]:
val = int(properties[key])
elif key in ["MainMenu"]:
val = ", ".join([ text + " (" + str(int(icon)) +
")" for text, icon in properties[key] ])
else:
val = str(properties[key])
print " %s = %s" % (key, val)