def onChangeColor(self, label=False): res = QColorDialog.getColor(self.color, None, 'Node color setup') if res.isValid(): res.setAlpha(80) self.color = res if label: self.update()
def onChangeColor(self): res = QColorDialog.getColor(self.color, None, 'Comment node color setup') if res.isValid(): res.setAlpha(80) self.color = res self.label().color = res self.update() self.label().update()