Changeset View
Changeset View
Standalone View
Standalone View
plugins/python/palette_docker/palette_docker.py
Context not available. | |||||
32 | # Init the docker | 32 | # Init the docker | ||
---|---|---|---|---|---|
33 | 33 | | |||
34 | def __init__(self): | 34 | def __init__(self): | ||
35 | super().__init__() | 35 | super(Palette_Docker, self).__init__() | ||
36 | # make base-widget and layout | 36 | # make base-widget and layout | ||
37 | widget = QWidget() | 37 | widget = QWidget() | ||
38 | layout = QVBoxLayout() | 38 | layout = QVBoxLayout() | ||
Context not available. | |||||
142 | pass | 142 | pass | ||
143 | palette = self.currentPalette | 143 | palette = self.currentPalette | ||
144 | self.colorComboBox.clear() | 144 | self.colorComboBox.clear() | ||
145 | self.colorList.clear() | 145 | self.colorList = list() | ||
146 | for i in range(palette.colorsCountTotal()): | 146 | for i in range(palette.colorsCountTotal()): | ||
147 | entry = palette.colorSetEntryByIndex(i) | 147 | entry = palette.colorSetEntryByIndex(i) | ||
148 | color = palette.colorForEntry(entry).colorForCanvas(self.canvas()) | 148 | color = palette.colorForEntry(entry).colorForCanvas(self.canvas()) | ||
Context not available. |