hubflow.core.ClassDefinition color input

Issue #223 resolved
Benjamin Jakimow created an issue

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)

  1. Log in to comment