From f6721a0ddd64d86d1637681e10d3c89d9ce5e4e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 8 May 2024 16:09:18 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/gui/textbrowser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LunaTranslator/LunaTranslator/gui/textbrowser.py b/LunaTranslator/LunaTranslator/gui/textbrowser.py index 9b1c8250..6ba63f94 100644 --- a/LunaTranslator/LunaTranslator/gui/textbrowser.py +++ b/LunaTranslator/LunaTranslator/gui/textbrowser.py @@ -762,13 +762,17 @@ class Textbrowser: label.hide() for label in self.savetaglabels: label.deleteLater() + del label self.savetaglabels.clear() for label in self.yinyinglabels: label.deleteLater() + del label + print(self.yinyinglabels) self.yinyinglabels.clear() for klass, labels in self.iteryinyinglabelsave.items(): for label in labels: label.deleteLater() + del label self.iteryinyinglabelsave.clear() self.yinyingpos = 0 self.yinyingposline = 0