code: def __init__(self, scene):
      QtWidgets.QWidget.__init__(self)
      self.setVisible(False)
      self.setWindowTitle("Export")
      self.shown = False
      self.currentExporter = None
      self.scene = scene
  
      self.selectBox = QtWidgets.QGraphicsRectItem()
      self.selectBox.setPen(
          fn.mkPen("y", width=3, style=QtCore.Qt.PenStyle.DashLine)
      )
      self.selectBox.hide()
      self.scene.addItem(self.selectBox)
  
      self.ui = ui_template.Ui_Form()
      self.ui.setupUi(self)
  
      self.ui.closeBtn.clicked.connect(self.close)
      self.ui.exportBtn.clicked.connect(self.exportClicked)
      self.ui.copyBtn.clicked.connect(self.copyClicked)
      self.ui.itemTree.currentItemChanged.connect(
          self.exportItemChanged
      )
      self.ui.formatList.currentItemChanged.connect(
          self.exportFormatChanged
      )
  
imports: from ..None import exporters
  from ..None import functions
  from ..graphicsItems.PlotItem import PlotItem
  from ..graphicsItems.ViewBox import ViewBox
  from ..Qt import QtCore, QtWidgets
  from .None import exportDialogTemplate_generic
label_desc: Use image node_id 1 to create a new ExportDialog object from inherited base classes: QtWidgets with example: obj = ExportDialog(scene)