code: def __init__(self, parent=None):
      super(ColorDialog, self).__init__(parent)
      self.setOption(QColorDialog.ShowAlphaChannel)
      # The Mac native dialog does not support our restore button.
      self.setOption(QColorDialog.DontUseNativeDialog)
      # Add a restore defaults button.
      # The default is set at invocation time, so that it
      # works across dialogs for different elements.
      self.default = None
      self.bb = self.layout().itemAt(1).widget()
      self.bb.addButton(BB.RestoreDefaults)
      self.bb.clicked.connect(self.checkRestore)
  
label_desc: Use image node_id 1 to create a new ColorDialog object from inherited base classes: QColorDialog with example: obj = ColorDialog(parent)