Update specialwidget.py

This commit is contained in:
恍兮惚兮 2024-04-12 17:24:04 +08:00
parent 2131a3ba24
commit 2b3d7e3133

View File

@ -173,9 +173,8 @@ class ScrollFlow(QWidget):
self.qscrollarea.setWidgetResizable(True)
self.qscrollarea.setWidget(self.listWidget)
self.qscrollarea.scrolled.connect(self.doshowlazywidget)
@trypass
def doshowlazywidget(self,region:QRect):
try:
#print(region)
for i,widget in enumerate(self.lazyitems):
if i in self.lazydoneidx:
continue
@ -186,8 +185,6 @@ class ScrollFlow(QWidget):
self.lazydoneidx.append(i)
widget.do()
QApplication.processEvents()
except:
print_exc()
def refreshscroll(self):
QApplication.processEvents()