Hello Fellow Forum users,
For my first foray into PyS60, I have written a lil' script. As I am learning, I am adding new code.
But, when I added the following code, the script fails to run successfully:
Could you spot the errors, please. I simply want to loop through all ap_ids and mark them as 'cheap' or not.
if not os.path.exists(PATH):
ap_id = socket.select_access_point()
f = file(u"c:\\Data\\SmartCon\\cheap_conf.txt", "a")
chk = appuifw.query(u"Mark the connection as 'cheap'?", "query")
ap_cheap_dict["ap_id"] = ap_id
ap_cheap_dict["value"] = chk
if not ap_id:
def save_dictionary(filename, dict):
f = file(filename, "a")
for key, value in dict.items():
print >> f, "%s: %s" % (key, value)
Would greatly appreciate assistance.