(self)
Show color-picker dialog to select color.

        Qt will use the native dialog by default.
Show color-picker dialog to select color.
Show color - picker dialog to select color .
def onColorPicker(self):
        '''
        Show color-picker dialog to select color.

        Qt will use the native dialog by default.

        '''
        dlg = QColorDialog(self)
        if self._color:
            dlg.setCurrentColor(QColor(self._color))

        if dlg.exec_():
            # self.setColor(dlg.currentColor().name())
            self.setColor(dlg.currentColor().rgba())
def onColorPicker ( self ) : dlg = QColorDialog ( self ) if self . _color : dlg . setCurrentColor ( QColor ( self . _color ) ) if dlg . exec_ ( ) : # self.setColor(dlg.currentColor().name()) self . setColor ( dlg . currentColor ( ) . rgba ( ) )