Updates to ImageMontage class to support highlighting clicked tiles. If the montage is created with highlight_selected = True, then when a tile is clicked, it becomes highlighted in yellow. This toggles, so that if a highlighted tile is clicked it becomes normal. There are two additional methods, setHighlighted() and getHighlighted(). The first might typically be used before showing the montage to initialize a set of tiles to be highlighted. getHighlighted() might typically be used after the montage is closed, for the calling program to determine the final set of tiles selected by the user. This feature works independently of the setSelectHandler() callback, which can still be used to invoke arbitrary actions when a tile is clicked. Now, however, the tile label is passed as an element in the dictionary of the signature of the select handler function. The changes are intended to not break any previous code.
Updates to ImageMontage class to support highlighting clicked tiles. If
the montage is created with highlight_selected = True, then when a tile
is clicked, it becomes highlighted in yellow. This toggles, so that if a
highlighted tile is clicked it becomes normal. There are two additional
methods, setHighlighted() and getHighlighted(). The first might
typically be used before showing the montage to initialize a set of
tiles to be highlighted. getHighlighted() might typically be used after
the montage is closed, for the calling program to determine the final
set of tiles selected by the user. This feature works independently of
the setSelectHandler() callback, which can still be used to invoke
arbitrary actions when a tile is clicked. Now, however, the tile label
is passed as an element in the dictionary of the signature of the select
handler function. The changes are intended to not break any previous
code.
mikeseven/pyvision,hitdong/pyvision,svohara/pyvision,svohara/pyvision,hitdong/pyvision,svohara/pyvision,mikeseven/pyvision,hitdong/pyvision,mikeseven/pyvision