FrameBrowser
#
API#
- class HorizontalSliderWithBrowser(parent=None)[source]#
Slider widget combining a
QSlider
and aFrameBrowser
.The data model is an integer within a range.
The default value is the default
QSlider
value (0), and the default range is the default QSlider range (0 – 99)The signal emitted when the value is changed is the usual QAbstractSlider signal
valueChanged
. The signal carries the value (as an integer).- Parameters:
parent (QWidget) – Optional parent widget
- setRange(first, last)[source]#
Set minimum/maximum values
- Parameters:
first (int) – Minimum value
last (int) – Maximum value
- setFrameRate(value)[source]#
Set the frame rate at which images are displayed
- Parameters:
value (
int
)
- class FrameBrowser(parent=None, n=None)[source]#
Frame browser widget, with 4 buttons/icons and a line edit to provide a way of selecting a frame index in a stack of images.
It can be used in more generic case to select an integer within a range.
- Parameters:
parent (QWidget) – Parent widget
n (int) – Number of frames. This will set the range of frame indices to 0–n-1. If None, the range is initialized to the default QSlider range (0–99).
- setRange(first, last)[source]#
Set minimum and maximum frame indices.
Initialize the frame index to first. Update the label text to “ limits: first, last”
- Parameters:
first (int) – Minimum frame index
last (int) – Maximum frame index