Skip to content

GUI Objects

gui_objects

Additional GUI objects used by Spectral Film LUT.

Classes:

  • AnimatedButton

    A button with animated hover and press.

  • AnimatedToolButton

    A tool button with animated hover and press.

  • FileSelector

    A widget with a src line edit and a button to open a system file selector.

  • GradientSlider

    A styled slider with float value support and customizable color gradients.

  • HoverLineEdit

    A line edit with animated hover.

  • RoundedScrollArea

    A QScrollArea with rounded corners.

  • Slider

    A slider with float value support.

  • SliderLog

    A slider with float value support and a logarithmic value distribution.

  • WideComboBox

    A combo box with animated hover and expanded and styled frame.

  • Worker

    Worker thread.

  • WorkerSignals

    Signals from a running worker thread.

Functions:

AnimatedButton

AnimatedButton(text=None, base_color=None, *args, **kwargs)

Bases: QPushButton

A button with animated hover and press.

AnimatedToolButton

AnimatedToolButton(base_color=None, *args, **kwargs)

Bases: QToolButton

A tool button with animated hover and press.

FileSelector

FileSelector(*args, **kwargs)

Bases: QWidget

A widget with a src line edit and a button to open a system file selector.

GradientSlider

GradientSlider(*args, reference_value=0, modern_design=True, **kwargs)

Bases: QSlider

A styled slider with float value support and customizable color gradients.

Methods:

set_reference_value

set_reference_value(value: int)

Update the reference (neutral) value dynamically.

HoverLineEdit

HoverLineEdit(*args, **kwargs)

Bases: QLineEdit

A line edit with animated hover.

RoundedScrollArea

RoundedScrollArea(radius=None, *args, **kwargs)

Bases: QScrollArea

A QScrollArea with rounded corners.

Slider

Slider(*args, **kwargs)

Bases: QWidget

A slider with float value support.

SliderLog

SliderLog(*args, **kwargs)

Bases: QWidget

A slider with float value support and a logarithmic value distribution.

WideComboBox

WideComboBox(parent=None, base_color=None)

Bases: QComboBox

A combo box with animated hover and expanded and styled frame.

Worker

Worker(fn, *args, **kwargs)

Bases: QRunnable

Worker thread.

Inherits from QRunnable to handler worker thread setup, signals and wrap-up.

:param callback: The function callback to run on this worker thread. Supplied args and kwargs will be passed through to the runner. :type callback: function :param args: Arguments to pass to the callback function :param kwargs: Keywords to pass to the callback function

WorkerSignals

Bases: QObject

Signals from a running worker thread.

finished No data

error tuple (exctype, value, traceback.format_exc())

result object data returned from processing, anything

progress float indicating % progress

qcolor_to_rgba_string

qcolor_to_rgba_string(c: QColor) -> str

Return a CSS rgba(...) string where alpha is 0..1 (Qt accepts that).