From 17e42c44b3f7cdc6033c7c584e6dba83a1a5a8d1 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Tue, 14 Apr 2026 15:52:04 +0200 Subject: [PATCH] refactor: widen keyframe tuple to carry ratio and random flags Co-Authored-By: Claude Opus 4.6 --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 820e12d..885e6b2 100755 --- a/main.py +++ b/main.py @@ -747,7 +747,7 @@ class TimelineWidget(QWidget): self._clip_span = 14.0 # 8 + 2*spread, updated from MainWindow self._play_pos: float | None = None # current playback position (seconds) self._locked = False # when True, clicks scrub playback, not cursor - self._crop_keyframes: list[tuple[float, float]] = [] # [(time, center)] + self._crop_keyframes: list[tuple[float, float, str | None, bool, bool]] = [] self._markers: list[tuple[float, int, str]] = [] self._hover_cache: list[tuple[float, str]] = [] # (t/duration, path) @@ -798,7 +798,7 @@ class TimelineWidget(QWidget): self._play_pos = t self.update() - def set_crop_keyframes(self, kfs: list[tuple[float, float]]) -> None: + def set_crop_keyframes(self, kfs: list[tuple[float, float, str | None, bool, bool]]) -> None: self._crop_keyframes = kfs self.update() @@ -1767,7 +1767,7 @@ class MainWindow(QMainWindow): self._db_worker: _DBWorker | None = None self._frame_grabber: FrameGrabber | None = None self._fps: float = 25.0 # cached on file load via get_fps() - self._crop_keyframes: list[tuple[float, float]] = [] # [(time, center), ...] sorted + self._crop_keyframes: list[tuple[float, float, str | None, bool, bool]] = [] # sorted by time # Widgets self._playlist = PlaylistWidget()