ScreenshotViewer
Screenshot thumbnail viewer for review UI.
Displays screenshot thumbnails with selection and actions.
Classes
- class ScreenshotInfo
Information about a screenshot.
- class ScreenshotViewer
Screenshot gallery with thumbnails.
Manages a collection of screenshots with thumbnail display, selection, and actions (view full, copy path).
Methods:
- __init__()
Initialize viewer.
- set_screenshots()
Update gallery with new screenshots.
- load_from_directory()
Load screenshots from a directory.
- select()
Select a screenshot by index.
- get_selected()
Get currently selected screenshot.
- select_next()
Select next screenshot.
- select_previous()
Select previous screenshot.
- view_full_size()
Open selected screenshot in system viewer.
- copy_path_to_clipboard()
Copy selected screenshot path to clipboard.
- get_count()
Get number of screenshots.
- clear()
Clear all screenshots.
Functions
- set_screenshots()
Update gallery with new screenshots.
- Args:
screenshots: List of screenshot info objects.
- load_from_directory()
Load screenshots from a directory.
- Args:
directory: Directory containing PNG files.
- Returns:
List of ScreenshotInfo objects.
- select()
Select a screenshot by index.
- Args:
index: Screenshot index.
- Returns:
Selected ScreenshotInfo or None.
- get_selected()
Get currently selected screenshot.
- Returns:
Selected ScreenshotInfo or None.
- select_next()
Select next screenshot.
- Returns:
Selected ScreenshotInfo or None.
- select_previous()
Select previous screenshot.
- Returns:
Selected ScreenshotInfo or None.
- view_full_size()
Open selected screenshot in system viewer.
- Returns:
True if opened successfully.
- copy_path_to_clipboard()
Copy selected screenshot path to clipboard.
- Returns:
True if copied successfully.
- get_count()
Get number of screenshots.
- clear()
Clear all screenshots.