Example #1
0
 def openColorChooserDialog(self):
     """
     Prompts the user to choose a color and then updates colorFrame with
     the selected color.
     """
     qcolor = RGBf_to_QColor(self.color)
     if not self.color in self.standardColorList:
         QColorDialog.setCustomColor(self.customColorCount, qcolor.rgb())
         self.customColorCount += 1
     c = QColorDialog.getColor(qcolor, self)
     if c.isValid():
         self.setColor(QColor_to_RGBf(c))
         self.colorFrame.emit(SIGNAL("editingFinished()"))
 def openColorChooserDialog(self):
     """
     Prompts the user to choose a color and then updates colorFrame with
     the selected color.
     """
     qcolor = RGBf_to_QColor(self.color)
     if not self.color in self.standardColorList:
         QColorDialog.setCustomColor(self.customColorCount, qcolor.rgb())
         self.customColorCount += 1
     c = QColorDialog.getColor(qcolor, self)
     if c.isValid():
         self.setColor(QColor_to_RGBf(c))
         self.colorFrame.emit(SIGNAL("editingFinished()"))