# The Python API of djv.ui: generated from the bindings by nanobind's # stubgen, with each description taken from the C++ headers. Do not edit: # see docs/pythonstubs.py. Import it as "import djv". """User interface widgets""" from collections.abc import Callable, Mapping, Sequence import feather_tk._feather_tk import tlrender._tlrender import tlrender._tlrender.ui import djv._djv.models class AudioPopup(feather_tk._feather_tk.IWidgetPopup): """Audio popup.""" def __init__(self, context: feather_tk._feather_tk.Context, audioModel: djv._djv.models.AudioModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... def initIcons(context: feather_tk._feather_tk.Context) -> None: """Register the application's icons with the icon system: every icon compiled into the resource library, generated from the files in etc/Icons. """ class OCIOWidget(feather_tk._feather_tk.IContainer): """The OCIO section of the Color tool: the configuration, the input color space, the display, the view and the look. """ def __init__(self, context: feather_tk._feather_tk.Context, colorModel: djv._djv.models.ColorModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... @property def enabledCheckBox(self) -> feather_tk._feather_tk.CheckBox: """Get the check box that turns OpenColorIO on and off, which the Color tool puts in the section's title. """ class LUTWidget(feather_tk._feather_tk.IContainer): """The LUT section of the Color tool: the LUT file, and the order and direction it is applied in. """ def __init__(self, context: feather_tk._feather_tk.Context, colorModel: djv._djv.models.ColorModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... @property def enabledCheckBox(self) -> feather_tk._feather_tk.CheckBox: """Get the check box that turns the LUT on and off, which the Color tool puts in the section's title. """ class ColorWidget(feather_tk._feather_tk.IContainer): """The Color section of the Color tool: the color values, exposure and soft clip. """ def __init__(self, context: feather_tk._feather_tk.Context, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... @property def enabledCheckBox(self) -> feather_tk._feather_tk.CheckBox: """Get the check box that turns the color values, exposure and soft clip on and off together, which the Color tool puts in the section's title. """ class LevelsWidget(feather_tk._feather_tk.IContainer): """The Levels section of the Color tool.""" def __init__(self, context: feather_tk._feather_tk.Context, settings: feather_tk._feather_tk.Settings, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... @property def enabledCheckBox(self) -> feather_tk._feather_tk.CheckBox: """Get the check box that turns the levels on and off, which the Color tool puts in the section's title. """ class ViewOptionsWidget(feather_tk._feather_tk.IContainer): def __init__(self, context: feather_tk._feather_tk.Context, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class ViewAspectRatioWidget(feather_tk._feather_tk.IContainer): def __init__(self, context: feather_tk._feather_tk.Context, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class ViewBackgroundWidget(feather_tk._feather_tk.IContainer): def __init__(self, context: feather_tk._feather_tk.Context, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class ViewOutlineWidget(feather_tk._feather_tk.IContainer): def __init__(self, context: feather_tk._feather_tk.Context, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... @property def enabledCheckBox(self) -> feather_tk._feather_tk.CheckBox: ... class ViewGridWidget(feather_tk._feather_tk.IContainer): def __init__(self, context: feather_tk._feather_tk.Context, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... @property def enabledCheckBox(self) -> feather_tk._feather_tk.CheckBox: ... class ViewCenterMarkerWidget(feather_tk._feather_tk.IContainer): def __init__(self, context: feather_tk._feather_tk.Context, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... @property def enabledCheckBox(self) -> feather_tk._feather_tk.CheckBox: ... class ViewFrameGuideWidget(feather_tk._feather_tk.IContainer): def __init__(self, context: feather_tk._feather_tk.Context, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... @property def enabledCheckBox(self) -> feather_tk._feather_tk.CheckBox: ... class ViewSafeAreasWidget(feather_tk._feather_tk.IContainer): def __init__(self, context: feather_tk._feather_tk.Context, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... @property def enabledCheckBox(self) -> feather_tk._feather_tk.CheckBox: ... class ViewDataWindowWidget(feather_tk._feather_tk.IContainer): def __init__(self, context: feather_tk._feather_tk.Context, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... @property def enabledCheckBox(self) -> feather_tk._feather_tk.CheckBox: ... class ViewClippingWarningWidget(feather_tk._feather_tk.IContainer): def __init__(self, context: feather_tk._feather_tk.Context, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... @property def enabledCheckBox(self) -> feather_tk._feather_tk.CheckBox: ... class ViewHUDWidget(feather_tk._feather_tk.IContainer): def __init__(self, context: feather_tk._feather_tk.Context, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... @property def enabledCheckBox(self) -> feather_tk._feather_tk.CheckBox: ... class Viewport(tlrender._tlrender.ui.Viewport): """Viewport.""" def __init__(self, context: feather_tk._feather_tk.Context, filesModel: djv._djv.models.FilesModel, colorModel: djv._djv.models.ColorModel, viewportModel: djv._djv.models.ViewportModel, timeUnitsModel: djv._djv.models.TimeUnitsModel, settingsModel: djv._djv.models.SettingsModel, annotationsModel: djv._djv.models.AnnotationsModel, drawModel: djv._djv.models.DrawModel, sysLogModel: feather_tk._feather_tk.SysLogModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: """Create a new widget.""" def setToastActive(self, arg: bool, /) -> None: """Set whether the toast stands in for the status bar.""" def showHint(self, text: str) -> None: """Show a short message in the toast's place, for a few seconds. Unlike the errors it shows even when the toast is not active: it is what to do next, e.g., how to leave presentation mode. """ def setHUDActive(self, arg: bool, /) -> None: """Set whether the heads up display is shown at all. Separate from the display's own options so that turning it off for presentation does not forget what was being shown. """ class ISettingsWidget(feather_tk._feather_tk.IContainer): """Base class for settings widgets.""" pass class AudioSettingsWidget(ISettingsWidget): def __init__(self, context: feather_tk._feather_tk.Context, settingsModel: djv._djv.models.SettingsModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class CacheSettingsWidget(ISettingsWidget): def __init__(self, context: feather_tk._feather_tk.Context, settingsModel: djv._djv.models.SettingsModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class FileBrowserSettingsWidget(ISettingsWidget): def __init__(self, context: feather_tk._feather_tk.Context, settingsModel: djv._djv.models.SettingsModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class OTIOSettingsWidget(ISettingsWidget): def __init__(self, context: feather_tk._feather_tk.Context, settingsModel: djv._djv.models.SettingsModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class MouseSettingsWidget(ISettingsWidget): def __init__(self, context: feather_tk._feather_tk.Context, settingsModel: djv._djv.models.SettingsModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class PlaybackSettingsWidget(ISettingsWidget): def __init__(self, context: feather_tk._feather_tk.Context, settingsModel: djv._djv.models.SettingsModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class ShortcutsSettingsWidget(ISettingsWidget): def __init__(self, context: feather_tk._feather_tk.Context, settingsModel: djv._djv.models.SettingsModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class StyleSettingsWidget(ISettingsWidget): def __init__(self, context: feather_tk._feather_tk.Context, settingsModel: djv._djv.models.SettingsModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class GraphicsSettingsWidget(ISettingsWidget): """Graphics settings widget: what the windows are drawn with. The setting is the application's rather than one of the settings model's, since the renderer is chosen before those are read. """ def __init__(self, context: feather_tk._feather_tk.Context, app: feather_tk._feather_tk.App, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class ImageSeqSettingsWidget(ISettingsWidget): """Image sequence settings widget.""" def __init__(self, context: feather_tk._feather_tk.Context, settingsModel: djv._djv.models.SettingsModel, viewportModel: djv._djv.models.ViewportModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class TimeSettingsWidget(ISettingsWidget): """Time settings widget.""" def __init__(self, context: feather_tk._feather_tk.Context, timeUnitsModel: djv._djv.models.TimeUnitsModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class FFmpegSettingsWidget(ISettingsWidget): def __init__(self, context: feather_tk._feather_tk.Context, settingsModel: djv._djv.models.SettingsModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class FileDragDropData(feather_tk._feather_tk.IDragDropData): """What dragging a file carries: the item itself. The receiver looks the item up in the list it has, so a drag from a stale row cannot name a row that no longer exists. """ def __init__(self, item: djv._djv.models.FilesModelItem) -> None: ... @property def item(self) -> djv._djv.models.FilesModelItem: """Get the file being dragged.""" class FileThumbnail(feather_tk._feather_tk.IWidget): """A file's thumbnail, as the Files tool shows it. It is read while it can be seen. """ def __init__(self, context: feather_tk._feather_tk.Context, item: djv._djv.models.FilesModelItem, ioOptions: Mapping[str, str], parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... @property def thumbnail(self) -> feather_tk._feather_tk.Image: """Get the thumbnail image, e.g. for a drag cursor. Null until the thumbnail has loaded. """ class FrameRangePopup(feather_tk._feather_tk.IWidgetPopup): """Frame range popup. The range a sequence is meant to cover is set rarely, and two edits in every row of the files tool cost more width than the tool has. """ def __init__(self, context: feather_tk._feather_tk.Context, range: feather_tk._feather_tk.RangeI64, parent: feather_tk._feather_tk.IWidget | None = None) -> None: """Create a new popup.""" def setCallback(self, arg: Callable[[feather_tk._feather_tk.RangeI64], None], /) -> None: """Set the callback.""" class InfoWidget(feather_tk._feather_tk.IContainer): """Information widget: the I/O information for the current file, in searchable sections. """ def __init__(self, context: feather_tk._feather_tk.Context, settings: feather_tk._feather_tk.Settings, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... def setPlayer(self, player: tlrender._tlrender.Player) -> None: """Set the player.""" class SeparateAudioDialog(feather_tk._feather_tk.IDialog): """Separate audio dialog.""" def __init__(self, context: feather_tk._feather_tk.Context, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... def setCallback(self, arg: Callable[[feather_tk._feather_tk.Path, feather_tk._feather_tk.Path], None], /) -> None: """Set the callback.""" class SpeedPopup(feather_tk._feather_tk.IWidgetPopup): """Speed popup.""" def __init__(self, context: feather_tk._feather_tk.Context, model: feather_tk._feather_tk.DoubleModel, defaultSpeed: float, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... def setCallback(self, arg: Callable[[float], None], /) -> None: """Set the callback for when a speed is chosen from the list, in frames per second. """ class StatusIndicator(feather_tk._feather_tk.IContainer): """Status indicator widget. Shows which options are enabled that can affect video, audio, or performance, as a letter for each group of them, lit while one of the group is on, and opens a popup listing them. """ def __init__(self, context: feather_tk._feather_tk.Context, viewportModel: djv._djv.models.ViewportModel, colorModel: djv._djv.models.ColorModel, audioModel: djv._djv.models.AudioModel, filesModel: djv._djv.models.FilesModel, toolsModel: djv._djv.models.ToolsModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: """Create a new widget.""" def getSysInfo(context: feather_tk._feather_tk.Context, appInfoModel: djv._djv.models.AppInfoModel, settingsModel: djv._djv.models.SettingsModel, windowInfo: Sequence[tuple[str, str]] = [], files: Sequence[tuple[str, str]] = []) -> list[str]: """Get the system information text: the application version, the hardware, OpenGL, audio, and the I/O plugins. The window information comes from the caller's window; without one a hidden window is created for the OpenGL strings. """ class SysInfoDialog(feather_tk._feather_tk.IDialog): """System information dialog.""" def __init__(self, context: feather_tk._feather_tk.Context, text: Sequence[str], parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... class MagnifyWidget(feather_tk._feather_tk.IContainer): """Magnify widget: a magnified view that follows another viewport's sample position. """ def __init__(self, context: feather_tk._feather_tk.Context, settings: feather_tk._feather_tk.Settings, viewport: tlrender._tlrender.ui.Viewport, filesModel: djv._djv.models.FilesModel, colorModel: djv._djv.models.ColorModel, viewportModel: djv._djv.models.ViewportModel, settingsModel: djv._djv.models.SettingsModel, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... def setPlayer(self, player: tlrender._tlrender.Player) -> None: """Set the player.""" class ExportWidget(feather_tk._feather_tk.IContainer): """Export widget.""" def __init__(self, context: feather_tk._feather_tk.Context, filesModel: djv._djv.models.FilesModel, colorModel: djv._djv.models.ColorModel, viewportModel: djv._djv.models.ViewportModel, settingsModel: djv._djv.models.SettingsModel, timeUnitsModel: djv._djv.models.TimeUnitsModel, annotationsModel: djv._djv.models.AnnotationsModel, exportQueue: djv._djv.models.ExportQueue, parent: feather_tk._feather_tk.IWidget | None = None) -> None: ... def setPlayer(self, player: tlrender._tlrender.Player) -> None: """Set the player."""