diff --git a/chaineTV.py b/chaineTV.py index 0264186..8042ed2 100644 --- a/chaineTV.py +++ b/chaineTV.py @@ -160,7 +160,7 @@ class Interface: def click_update(self): self.data.parsechaine() - labelupdate = Label(self.resultframe, text="update chaine done"+"\r") + labelupdate = Label(self.resultframe.interior, text="update chaine done"+"\r") labelupdate.pack() def _openlink(self,link): @@ -198,10 +198,10 @@ class JSONfile: if RepresentsInt(firstTD.find_next().string): #print(firstTD.find_next().find_next().text) - liste_chaine[int(num)] = firstTD.find_next().find_next().text + liste_chaine[str(int(num))] = firstTD.find_next().find_next().text else: #print(firstTD.find_next().string) - liste_chaine[int(num)] = firstTD.find_next().text + liste_chaine[str(int(num))] = firstTD.find_next().text print(json.dumps(liste_chaine, indent=4)) self.data=liste_chaine with open(self.datafilepath, 'w', encoding='utf-8') as f: