Examples

color = QtGui.QColor(128, 255, 0)
dialog = QtWidgets.QColorDialog(self.treeWidget())
dialog.getColor(color)