418
419
420
421
422
423
424
425
426
427
428
429
430
431
|
self.xNumDic.Label = str(self.oPersonalDicJSON["nEntry"])
self.xDateDic.Label = self.oPersonalDicJSON["sDate"]
else:
self.xOptionNode.setPropertyValue("personal_dic", "")
self.xSettingNode.commitChanges()
self.xNumDic.Label = "0"
self.xDateDic.Label = self.dUI.get("void", "#err")
def exportDictionary (self):
try:
spfExported = os.path.join(os.path.expanduser("~"), "fr.personal.json")
sJSON = self.xOptionNode.getPropertyValue("personal_dic")
if sJSON:
with open(spfExported, "w", encoding="utf-8") as hDst:
|
>
|
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
|
self.xNumDic.Label = str(self.oPersonalDicJSON["nEntry"])
self.xDateDic.Label = self.oPersonalDicJSON["sDate"]
else:
self.xOptionNode.setPropertyValue("personal_dic", "")
self.xSettingNode.commitChanges()
self.xNumDic.Label = "0"
self.xDateDic.Label = self.dUI.get("void", "#err")
MessageBox(self.xDocument, self.dUI.get('save_message', "#err"), self.dUI.get('save_title', "#err"))
def exportDictionary (self):
try:
spfExported = os.path.join(os.path.expanduser("~"), "fr.personal.json")
sJSON = self.xOptionNode.getPropertyValue("personal_dic")
if sJSON:
with open(spfExported, "w", encoding="utf-8") as hDst:
|