original_docstring: Invoke palette editor and set the color
docstring: Invoke palette editor and set the color
docstring_tokens: Invoke palette editor and set the color
code: def change_color(self, index):
          """Invoke palette editor and set the color"""
          color = self.model().data(index, ColorRole)
          if color is None:
              return
          dlg = QColorDialog(QColor(*color))
          if dlg.exec():
              color = dlg.selectedColor()
              self.model().setData(index, color.getRgb(), ColorRole)
code_tokens: def change_color ( self , index ) : color = self . model ( ) . data ( index , ColorRole ) if color is None : return dlg = QColorDialog ( QColor ( * color ) ) if dlg . exec ( ) : color = dlg . selectedColor ( ) self . model ( ) . setData ( index , color . getRgb ( ) , ColorRole )
short_docstring: Invoke palette editor and set the color
short_docstring_tokens: Invoke palette editor and set the color
comment: """Invoke palette editor and set the color"""