class_docstr: The main dialog window.
code: def set_entry(self, index):
      if self.current_entry == index:
          return
  
      self.current_entry = index
      entry = self.entries[index]
  
      self.pixmaps = []
      for fname, thumbnail in zip(entry.thumbnails, self.thumbnails):
          pixmap = QtGui.QPixmap(os.fspath(fname))
          scaled_pixmap = pixmap.scaled(
              thumbnail.size(),
              QtCore.Qt.AspectRatioMode.KeepAspectRatio,
              QtCore.Qt.TransformationMode.SmoothTransformation,
          )
          thumbnail.image.setPixmap(scaled_pixmap)
          self.pixmaps.append(scaled_pixmap)
  
      self.set_large_image(0)
      self.filelist.setCurrentRow(self.current_entry)
  
imports: import os
  from pathlib import Path
  import shutil
  import sys
  from matplotlib.backends.qt_compat import QtCore, QtGui, QtWidgets
  from matplotlib.backends.qt_compat import _exec
label_desc: Use image node_id 2 for calling the Dialog obj's underlying member method code with example usage: obj.set_entry(index) without return types