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"""
          from_c, to_c, black = self.model().data(index, ColorRole)
          master = self.master
          dlg = ColorPaletteDlg(master)
          dlg.createContinuousPalette(
              "", "Gradient palette", black, QColor(*from_c), QColor(*to_c)
          )
          dlg.setColorSchemas(master.color_settings, master.selected_schema_index)
          if dlg.exec():
              self.model().setData(
                  index,
                  (
                      dlg.contLeft.getColor().getRgb(),
                      dlg.contRight.getColor().getRgb(),
                      dlg.contpassThroughBlack,
                  ),
                  ColorRole,
              )
              master.color_settings = dlg.getColorSchemas()
              master.selected_schema_index = dlg.selectedSchemaIndex
code_tokens: def change_color ( self , index ) : from_c , to_c , black = self . model ( ) . data ( index , ColorRole ) master = self . master dlg = ColorPaletteDlg ( master ) dlg . createContinuousPalette ( "" , "Gradient palette" , black , QColor ( * from_c ) , QColor ( * to_c ) ) dlg . setColorSchemas ( master . color_settings , master . selected_schema_index ) if dlg . exec ( ) : self . model ( ) . setData ( index , ( dlg . contLeft . getColor ( ) . getRgb ( ) , dlg . contRight . getColor ( ) . getRgb ( ) , dlg . contpassThroughBlack , ) , ColorRole , ) master . color_settings = dlg . getColorSchemas ( ) master . selected_schema_index = dlg . selectedSchemaIndex
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"""