tomwer.gui.utils.vignettes.VignettesQDialog#

class tomwer.gui.utils.vignettes.VignettesQDialog(value_name, score_name, parent=None, value_format=None, score_format=None, colormap=None)#
AUTO_NB_COLUMN = 'auto'#
COLUMN_VALUES = ('auto', 1, 2, 3, 4, 5, 6, 8, 10)#
RESIZE_MAX_TIME = 500#
SIZE_HINT = PyQt5.QtCore.QSize(820, 820)#
acccept()#
static computeOptimalNColumn(window_width, vignette_width)#
getNColumn()#
Return type:

int | None

reject(self)#
resizeEvent(self, a0: QResizeEvent | None)#
selectedValue()#
setNbColumn(value)#
setScores(scores, score_method)#

Expect a dictionary with possible values to select as key and (2D numpy.array, score) as value. Where the 2D numpy.array is the frame to display and the score if the “indicator” score to display with the frame. :type scores: dict :param scores: with score as key and a tuple (url|numpy array, ComputedScore) as value :param ScoreMethod score_method: score kind to be display

sizeHint()#

Return a reasonable default size for usage in PlotWindow