From 4472de9d0812678a980d9ae45dc59ff3c1f17498 Mon Sep 17 00:00:00 2001 From: LxHTT Date: Thu, 31 Aug 2023 23:51:08 +0800 Subject: [PATCH] =?UTF-8?q?F=20|=20=E4=BF=AE=E5=A4=8DFlowLayout=E5=88=A0?= =?UTF-8?q?=E9=99=A4Widget=E7=94=A8=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Interfaces/OfInterface.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Interfaces/OfInterface.py b/Interfaces/OfInterface.py index f441192..f7b15c3 100644 --- a/Interfaces/OfInterface.py +++ b/Interfaces/OfInterface.py @@ -951,8 +951,7 @@ def logout(self): def getNodeList_API(self): OFVariables.nodeListData = [] try: - for i in reversed(range(self.nodeLayout.count())): - self.nodeLayout.itemAt(i).widget().deleteLater() + self.nodeLayout.takeAllWidgets() for i in reversed(range(self.loadingStatusLayout.count())): self.loadingStatusLayout.itemAt(i).widget().deleteLater() except Exception: