def saveSettings():
print "- Saving settings"
try:
outfile = open('config.pkl', 'wb')
# Use a dictionary (rather than pickling 'raw' values) so
# the number & order of things can change without breaking.
print("-- ok")
d = {
'displayDelay' : displayDelay,
'countryBlocked' : countryBlocked,
'countryForced' : countryForced,
'WifiAPkeyLenght' : WifiAPkeyLenght
}
pickle.dump(d, outfile)
outfile.close()
except:
print("-- error")
pass
评论列表
文章目录