(self)
Separate the current image into cyan, magenta, and yellow
            components.  Create a representation of how each component might
            appear when applied to a blank white piece of paper.
Separate the current image into cyan, magenta, and yellow
            components.  Create a representation of how each component might
            appear when applied to a blank white piece of paper.
Separate the current image into cyan magenta and yellow components . Create a representation of how each component might appear when applied to a blank white piece of paper .
def setColor(self):
        """ Separate the current image into cyan, magenta, and yellow
            components.  Create a representation of how each component might
            appear when applied to a blank white piece of paper.
        """
        newColor = QColorDialog.getColor(self.paintColor)

        if newColor.isValid():
            self.paintColor = newColor
            palette = QPalette(self.colorButton.palette())
            palette.setColor(QPalette.Button, self.paintColor)
            self.colorButton.setPalette(palette)
            self.createImage()
            self.imageChanged.emit()
def setColor ( self ) : newColor = QColorDialog . getColor ( self . paintColor ) if newColor . isValid ( ) : self . paintColor = newColor palette = QPalette ( self . colorButton . palette ( ) ) palette . setColor ( QPalette . Button , self . paintColor ) self . colorButton . setPalette ( palette ) self . createImage ( ) self . imageChanged . emit ( )