- changed status to resolved
hubflow.core.ClassDefinition color input
Issue #223
resolved
hubflow.core.ClassDefinition should be able to use QColor input.
import hubflow.core
classification = hubflow.core.Classification(pathSrc)
newNames = ['No Class', 'Class B']
newColors = [QColor('black'), QColor('yellow')]
# this works
c = hubflow.core.Color(QColor('black'))
# but this fails
newDef = hubflow.core.ClassDefinition(names=newNames[1:], colors=newColors[1:])
newDef.setNoDataNameAndColor(newNames[0], QColor('yellow'))
Comments (2)
-
-
- removed component
Removing component: HUB (automated comment)
- Log in to comment
fixed