def __init__(self, parent=None):
    super(ColorDialog, self).__init__(parent)
    self.setOption(QColorDialog.ShowAlphaChannel)
    self.setOption(QColorDialog.DontUseNativeDialog)
    self.default = None
    self.bb = self.layout().itemAt(1).widget()
    self.bb.addButton(BB.RestoreDefaults)
    self.bb.clicked.connect(self.checkRestore)
def __init__(self, parent=None):
    super(ColorDialog, self).__init__(parent)
    self.setOption(QColorDialog.ShowAlphaChannel)
    self.setOption(QColorDialog.DontUseNativeDialog)
    self.default = None
    self.bb = self.layout().itemAt(1).widget()
    self.bb.addButton(BB.RestoreDefaults)
    self.bb.clicked.connect(self.checkRestore)