refactor(main.py): remove unused seeking state and update dependencies in pyproject.toml
This commit is contained in:
@@ -9,7 +9,6 @@ import time
|
||||
import re
|
||||
import json
|
||||
|
||||
|
||||
class VideoEditor:
|
||||
# Configuration constants
|
||||
BASE_FRAME_DELAY_MS = 16 # ~60 FPS
|
||||
@@ -90,8 +89,6 @@ class VideoEditor:
|
||||
self.window_height = 800
|
||||
|
||||
# Seeking state
|
||||
self.is_seeking = False
|
||||
self.current_seek_key = None
|
||||
self.key_first_press_time = 0
|
||||
self.last_seek_time = 0
|
||||
|
||||
@@ -1225,7 +1222,7 @@ class VideoEditor:
|
||||
window_title = "Image Editor" if self.is_image_mode else "Video Editor"
|
||||
cv2.imshow(window_title, canvas)
|
||||
|
||||
def mouse_callback(self, event, x, y, flags, param):
|
||||
def mouse_callback(self, event, x, y, flags, _):
|
||||
"""Handle mouse events"""
|
||||
# Handle timeline interaction (not for images)
|
||||
if self.timeline_rect and not self.is_image_mode:
|
||||
|
Reference in New Issue
Block a user