Refactor imports in ProjectView for clarity and maintainability
This commit is contained in:
@@ -606,6 +606,18 @@ class ProjectView:
|
||||
# Ensure scroll offset doesn't go negative or beyond available content
|
||||
self.scroll_offset = max(0, min(self.scroll_offset, total_rows - visible_rows))
|
||||
|
||||
# Use extracted implementations while preserving original definitions above
|
||||
from .capture import Cv2BufferedCap as _ExtCv2BufferedCap
|
||||
Cv2BufferedCap = _ExtCv2BufferedCap
|
||||
|
||||
from .tracking import MotionTracker as _ExtMotionTracker
|
||||
MotionTracker = _ExtMotionTracker
|
||||
|
||||
from .utils import get_active_window_title as _ext_get_active_window_title
|
||||
get_active_window_title = _ext_get_active_window_title
|
||||
|
||||
|
||||
|
||||
class VideoEditor:
|
||||
# Configuration constants
|
||||
BASE_FRAME_DELAY_MS = 16 # ~60 FPS
|
||||
|
Reference in New Issue
Block a user