Exemple #1
0
 def choose_color(self):
     color = QColorDialog.getColor(self._color, self.parentWidget())
     if color.isValid():
         self.set_color(color)
Exemple #2
0
 def choose_color(self):
     color = QColorDialog.getColor(self._color, self.parentWidget(),
                                   'Select Color',
                                   QColorDialog.ShowAlphaChannel)
     if color.isValid():
         self.set_color(color)
Exemple #3
0
 def choose_color(self):
     color = QColorDialog.getColor(self._color, self.parentWidget(),
                                   'Select Color',
                                   QColorDialog.ShowAlphaChannel)
     if color.isValid():
         self.set_color(color)
Exemple #4
0
 def choose_color(self):
     rgba, valid = QColorDialog.getRgba(self._color.rgba(),
                                        self.parentWidget())
     if valid:
         color = QColor.fromRgba(rgba)
         self.set_color(color)