def checkRestore(self, button):
    if ((self.bb.buttonRole(button) & BB.ResetRole) and self.default):
        self.setCurrentColor(self.default)
def checkRestore(self, button):
    if ((self.bb.buttonRole(button) & BB.ResetRole) and self.default):
        self.setCurrentColor(self.default)