def thumbnail_generated(self, row=None, picn=None):
try:
if os.path.exists(picn):
if not os.stat(picn).st_size:
picn = self.default_background
if self.list_with_thumbnail:
icon_new_pixel = self.create_new_image_pixel(picn, 128)
if os.path.exists(icon_new_pixel):
try:
if row < self.list2.count():
self.list2.item(row).setIcon(QtGui.QIcon(icon_new_pixel))
except Exception as err:
print(err, '--6238--')
except Exception as err:
print(err, '--6240--')
print("Thumbnail Process Ended")
self.threadPoolthumb = self.threadPoolthumb[1:]
length = len(self.threadPoolthumb)
if length > 0:
if not self.threadPoolthumb[0].isRunning():
self.threadPoolthumb[0].start()
评论列表
文章目录