API¶
init module.
core ¶
src package.
core ¶
init module for winipyside6.core.
py_qiodevice ¶
PySide6 QIODevice wrapper.
EncryptedPyQFile ¶
Bases: PyQFile
Transparent AES-GCM encrypted file wrapper for secure media access.
This class provides transparent encryption/decryption for file operations using AES-GCM (Galois/Counter Mode), an authenticated encryption cipher. Data is encrypted in fixed-size chunks (64KB plaintext + overhead) to support efficient streaming and random-access playback without decrypting entire files into memory.
Why chunked encryption is used: This approach enables seeking through encrypted files and playing encrypted videos without temporary files, by mapping between encrypted and decrypted positions and decrypting only necessary chunks on demand.
Attributes:
| Name | Type | Description |
|---|---|---|
NONCE_SIZE |
Size of random nonce per chunk (12 bytes). |
|
CIPHER_SIZE |
Size of plaintext per chunk (64 KB). |
|
TAG_SIZE |
Size of authentication tag per chunk (16 bytes). |
|
CHUNK_SIZE |
Total encrypted chunk size = CIPHER_SIZE + NONCE_SIZE + TAG_SIZE. |
|
CHUNK_OVERHEAD |
Total per-chunk overhead = NONCE_SIZE + TAG_SIZE (28 bytes). |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Path
|
The file path to open. |
required |
aes_gcm
|
AESGCM
|
The AES-GCM cipher instance for encryption/decryption. |
required |
*args
|
Any
|
Additional positional arguments passed to parent constructor. |
()
|
**kwargs
|
Any
|
Additional keyword arguments passed to parent constructor. |
{}
|
Source code in src/winipyside/core/core/py_qiodevice.py
chunk_generator
classmethod
¶
Generate fixed-size chunks from data for streaming processing.
Yields chunks of the appropriate size based on whether data is encrypted or plaintext. Used internally for batch encryption/decryption operations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
bytes
|
The complete data to split into chunks. |
required |
is_encrypted
|
bool
|
If True, uses CHUNK_SIZE (encrypted). If False, uses CIPHER_SIZE (plaintext). |
required |
Yields:
| Type | Description |
|---|---|
bytes
|
Byte chunks of the appropriate size (last chunk may be smaller). |
Source code in src/winipyside/core/core/py_qiodevice.py
decrypt_chunk_static
classmethod
¶
Decrypt a single chunk with authenticated verification.
Extracts the nonce from the chunk prefix, verifies the authentication tag, and decrypts the ciphertext. The AAD must match what was used during encryption.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
bytes
|
The encrypted chunk formatted as: nonce || ciphertext || authentication_tag. |
required |
aes_gcm
|
AESGCM
|
The AES-GCM cipher instance for decryption. |
required |
Returns:
| Type | Description |
|---|---|
bytes
|
The decrypted plaintext chunk. |
Raises:
| Type | Description |
|---|---|
InvalidTag
|
If the authentication tag is invalid, indicating the chunk was tampered with, corrupted, or encrypted with a different key. |
Source code in src/winipyside/core/core/py_qiodevice.py
decrypt_data ¶
Decrypt encrypted data using this instance's AES-GCM cipher.
Delegates to the static decryption method with this instance's cipher.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
bytes
|
The encrypted data with nonces and tags intact. |
required |
Returns:
| Type | Description |
|---|---|
bytes
|
The decrypted plaintext data. |
Raises:
| Type | Description |
|---|---|
InvalidTag
|
If authentication tag verification fails (indicates tampering or corruption). |
Source code in src/winipyside/core/core/py_qiodevice.py
decrypt_data_static
classmethod
¶
Decrypt encrypted data using AES-GCM in streaming chunks.
Processes encrypted data in chunk-sized blocks, decrypting each independently with authenticated verification. Each chunk contains its own nonce, making this suitable for random-access scenarios where only specific chunks need decryption.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
bytes
|
The encrypted data with nonces and tags (any size multiple of CHUNK_SIZE). |
required |
aes_gcm
|
AESGCM
|
The AES-GCM cipher instance for decryption. |
required |
Returns:
| Type | Description |
|---|---|
bytes
|
The decrypted plaintext data. |
Raises:
| Type | Description |
|---|---|
InvalidTag
|
If any chunk fails authentication (indicates tampering, corruption, or wrong key). |
Source code in src/winipyside/core/core/py_qiodevice.py
encrypt_chunk_static
classmethod
¶
Encrypt a single plaintext chunk with authenticated encryption.
Generates a random 12-byte nonce and encrypts the chunk with Additional Authenticated Data (AAD) to prevent tampering. The nonce is prepended to the ciphertext for use during decryption.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
bytes
|
The plaintext chunk to encrypt (up to CIPHER_SIZE bytes). |
required |
aes_gcm
|
AESGCM
|
The AES-GCM cipher instance for encryption. |
required |
Returns:
| Type | Description |
|---|---|
bytes
|
Encrypted chunk formatted as: nonce || ciphertext || authentication_tag. |
Source code in src/winipyside/core/core/py_qiodevice.py
encrypt_data ¶
Encrypt plaintext data using this instance's AES-GCM cipher.
Delegates to the static encryption method with this instance's cipher.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
bytes
|
The plaintext data to encrypt. |
required |
Returns:
| Type | Description |
|---|---|
bytes
|
The encrypted data with nonce |
bytes
|
and authentication tag prepended to each chunk. |
Source code in src/winipyside/core/core/py_qiodevice.py
encrypt_data_static
classmethod
¶
Encrypt plaintext data using AES-GCM in streaming chunks.
Processes data in fixed-size plaintext chunks, encrypting each independently. Each chunk receives its own random nonce and authentication tag, enabling random-access decryption (decrypting any chunk without decrypting others).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
bytes
|
The plaintext data to encrypt (any size). |
required |
aes_gcm
|
AESGCM
|
The AES-GCM cipher instance for encryption. |
required |
Returns:
| Type | Description |
|---|---|
bytes
|
The encrypted data with nonces |
bytes
|
and authentication tags prepended to each chunk. |
Source code in src/winipyside/core/core/py_qiodevice.py
get_chunk_end ¶
Get the end byte position of chunk range for given position and length.
Determines how many chunks are needed to read maxlen bytes starting from pos, and returns the byte offset of the end of the last required chunk.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pos
|
int
|
The starting byte position in the encrypted file. |
required |
maxlen
|
int
|
The number of bytes to potentially read. |
required |
Returns:
| Type | Description |
|---|---|
int
|
The byte offset of the end of the last chunk needed for the read. |
Source code in src/winipyside/core/core/py_qiodevice.py
get_chunk_start ¶
Get the start byte position of the chunk containing the given position.
Calculates which chunk boundary contains the position and returns the byte offset where that chunk begins in the encrypted file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pos
|
int
|
The byte position within a chunk (encrypted file coordinates). |
required |
Returns:
| Type | Description |
|---|---|
int
|
The byte offset of the start of the chunk containing the position. |
Source code in src/winipyside/core/core/py_qiodevice.py
get_decrypted_pos ¶
Convert encrypted file position to decrypted (plaintext) position.
Maps positions from the encrypted file layout to the corresponding position in the plaintext stream. Accounts for nonces and tags distributed across chunks.
This is essential for seeking operations - when user seeks to position X in the plaintext, we need to find the corresponding position in the encrypted file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enc_pos
|
int
|
The byte position in the encrypted file. |
required |
Returns:
| Type | Description |
|---|---|
int
|
The corresponding byte position in the decrypted plaintext. |
Source code in src/winipyside/core/core/py_qiodevice.py
get_encrypted_pos ¶
Convert decrypted (plaintext) position to encrypted file position.
Maps positions from the plaintext stream to the corresponding position in the encrypted file layout. Accounts for nonces and tags distributed across chunks.
This is the inverse of get_decrypted_pos() and is used when seeking - we convert the desired plaintext position to find where to read in the encrypted file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dec_pos
|
int
|
The byte position in the decrypted plaintext stream. |
required |
Returns:
| Type | Description |
|---|---|
int
|
The corresponding byte position in the encrypted file. |
Source code in src/winipyside/core/core/py_qiodevice.py
readData ¶
Read and decrypt data from the encrypted file.
Implements transparent decryption by reading encrypted chunks from the file and decrypting them. Handles position mapping between encrypted and decrypted data, enabling random access and seeking within encrypted content.
This method is called internally by the QIODevice read() method and handles the complexity of chunk boundaries and position tracking.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
maxlen
|
int
|
The maximum number of decrypted bytes to read from current position. |
required |
Returns:
| Type | Description |
|---|---|
bytes
|
The decrypted data as bytes (may be less than maxlen if at end of file). |
Source code in src/winipyside/core/core/py_qiodevice.py
size ¶
size() -> int
Get the decrypted file size.
Calculates and caches the decrypted file size based on the encrypted file size and chunk structure. This is used internally by the media player to determine file bounds without decrypting the entire file.
Returns:
| Type | Description |
|---|---|
int
|
The total plaintext size of the file in bytes. |
Source code in src/winipyside/core/core/py_qiodevice.py
writeData ¶
writeData(
data: bytes | bytearray | memoryview, len: int
) -> int
Encrypt and write data to the file.
Encrypts the provided plaintext data using AES-GCM and writes the encrypted chunks to the underlying file device. Each chunk includes a random nonce and authentication tag for authenticated encryption.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
bytes | bytearray | memoryview
|
The plaintext data to encrypt and write. |
required |
len
|
int
|
The length parameter (unused in this implementation, actual data length is used). |
required |
Returns:
| Type | Description |
|---|---|
int
|
The number of plaintext bytes that were encrypted and written. |
Source code in src/winipyside/core/core/py_qiodevice.py
PyQFile ¶
Bases: PyQIODevice
Pythonic wrapper for PySide6 QFile with file path support.
A specialized PyQIODevice wrapper that handles file path initialization and provides convenient file I/O operations. This class extends PyQIODevice with automatic QFile instantiation from file paths, simplifying file-based I/O operations throughout the application.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Path
|
The file path to open. |
required |
*args
|
Any
|
Additional positional arguments passed to parent constructor. |
()
|
**kwargs
|
Any
|
Additional keyword arguments passed to parent constructor. |
{}
|
Source code in src/winipyside/core/core/py_qiodevice.py
PyQIODevice ¶
Bases: QIODevice
Pythonic wrapper for PySide6 QIODevice with transparent delegation.
This class provides a Python-friendly interface to PySide6's QIODevice by wrapping an existing QIODevice instance and delegating all I/O operations to it. This pattern allows for composition-based enhancement of QIODevice functionality while maintaining full API compatibility.
The wrapper implements all standard QIODevice methods, making it suitable as a drop-in replacement for QIODevice in contexts requiring Pythonic behavior or additional processing layers (e.g., encryption/decryption in subclasses).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
q_device
|
QIODevice
|
The QIODevice instance to wrap and delegate operations to. |
required |
*args
|
Any
|
Additional positional arguments passed to parent QIODevice constructor. |
()
|
**kwargs
|
Any
|
Additional keyword arguments passed to parent QIODevice constructor. |
{}
|
Source code in src/winipyside/core/core/py_qiodevice.py
atEnd ¶
atEnd() -> bool
Check if the device is at the end of data.
Returns:
| Type | Description |
|---|---|
bool
|
True if the device is at the end, False otherwise. |
bytesAvailable ¶
bytesAvailable() -> int
Get the number of bytes available for reading.
Returns:
| Type | Description |
|---|---|
int
|
The number of bytes available for reading. |
bytesToWrite ¶
bytesToWrite() -> int
Get the number of bytes waiting to be written.
Returns:
| Type | Description |
|---|---|
int
|
The number of bytes waiting to be written. |
canReadLine ¶
canReadLine() -> bool
Check if a complete line can be read from the device.
Returns:
| Type | Description |
|---|---|
bool
|
True if a complete line can be read, False otherwise. |
close ¶
Close the device and release resources.
Closes the underlying QIODevice and calls the parent close method.
isSequential ¶
isSequential() -> bool
Check if the device is sequential.
Returns:
| Type | Description |
|---|---|
bool
|
True if the device is sequential, False if it supports random access. |
open ¶
open(mode: OpenModeFlag) -> bool
Open the device with the specified mode.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mode
|
OpenModeFlag
|
The open mode flag specifying how to open the device. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the device was opened successfully, False otherwise. |
Source code in src/winipyside/core/core/py_qiodevice.py
pos ¶
pos() -> int
Get the current position in the device.
Returns:
| Type | Description |
|---|---|
int
|
The current position in the device. |
readData ¶
readLineData ¶
reset ¶
reset() -> bool
Reset the device to its initial state.
Returns:
| Type | Description |
|---|---|
bool
|
True if the device was reset successfully, False otherwise. |
seek ¶
size ¶
size() -> int
skipData ¶
waitForBytesWritten ¶
waitForReadyRead ¶
Wait for the device to be ready for reading.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
msecs
|
int
|
The maximum time to wait in milliseconds. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the device became ready within the timeout, False otherwise. |
Source code in src/winipyside/core/core/py_qiodevice.py
writeData ¶
writeData(
data: bytes | bytearray | memoryview, len: int
) -> int
Write data to the device.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
bytes | bytearray | memoryview
|
The data to write to the device. |
required |
len
|
int
|
The length parameter (unused in this implementation). |
required |
Returns:
| Type | Description |
|---|---|
int
|
The number of bytes actually written. |
Source code in src/winipyside/core/core/py_qiodevice.py
ui ¶
init module for winipyside6.ui.
base ¶
init module.
base ¶
Base UI module.
This module contains the base UI class for the VideoVault application.
Base ¶
Abstract base class for all UI components with lifecycle hooks.
Defines a common initialization pattern for UI elements with four ordered setup phases, enabling predictable initialization flow. All UI components (pages, widgets, windows) inherit from this base to ensure consistent lifecycle management.
Subclasses must implement all abstract methods in the prescribed order: base_setup() → pre_setup() → setup() → post_setup()
Calls setup methods in a fixed order: base_setup(), pre_setup(), setup(), and post_setup(). This ensures all UI initialization happens in the correct sequence, with dependencies resolved before dependent setup runs.
Source code in src/winipyside/core/ui/base/base.py
abstractmethod
¶Initialize core Qt objects required by the UI component.
This is the first lifecycle hook, called before any other setup. Must create and configure fundamental Qt widgets/layouts that other setup phases depend on.
Examples:
- Creating QWidget or QMainWindow
- Setting up top-level layouts
- Initializing core visual structure
Source code in src/winipyside/core/ui/base/base.py
classmethod
¶get_display_name() -> str
Generate human-readable display name from class name.
Converts the class name from CamelCase to space-separated words. For example: 'BrowserPage' becomes 'Browser Page'.
Returns:
| Type | Description |
|---|---|
str
|
The human-readable display name derived from the class name. |
Source code in src/winipyside/core/ui/base/base.py
Get a specific page instance from the stack by class type.
Finds the single instance of the specified page class in the stack. Uses type equality check to handle inheritance correctly.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
page_cls
|
type[T]
|
The page class type to retrieve. Uses PEP 695 generic syntax. |
required |
Returns:
| Type | Description |
|---|---|
T
|
The page instance of the specified class, cast to correct type. |
Raises:
| Type | Description |
|---|---|
StopIteration
|
If no page of the specified class is in the stack. |
Source code in src/winipyside/core/ui/base/base.py
classmethod
¶Get a page instance directly from the main application window.
This static method provides a global way to access any page without needing a reference to the window. Searches through top-level widgets to find the BaseWindow instance, then retrieves the desired page from it.
Useful for accessing pages from deep within nested widget hierarchies where passing window references would be impractical.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
page_cls
|
type[T]
|
The page class type to retrieve. Uses PEP 695 generic syntax. |
required |
Returns:
| Type | Description |
|---|---|
T
|
The page instance of the specified class from the main window. |
Raises:
| Type | Description |
|---|---|
StopIteration
|
If no BaseWindow is found or if the page doesn't exist. |
Source code in src/winipyside/core/ui/base/base.py
Get the stacked widget containing all pages.
Assumes the window object has a 'stack' attribute (QStackedWidget) that holds all pages.
Returns:
| Type | Description |
|---|---|
QStackedWidget
|
The QStackedWidget managing page navigation. |
Raises:
| Type | Description |
|---|---|
AttributeError
|
If the window doesn't have a 'stack' attribute. |
Source code in src/winipyside/core/ui/base/base.py
Get all page instances from the stacked widget.
Retrieves all currently instantiated pages in the stacked widget, maintaining their widget index order.
Returns:
| Type | Description |
|---|---|
list[Base]
|
A list of all BasePage instances in the stack. |
Source code in src/winipyside/core/ui/base/base.py
classmethod
¶get_subclasses(
package: ModuleType | None = None,
) -> list[type[Self]]
Get all non-abstract subclasses of this UI class.
Dynamically discovers all concrete (non-abstract) subclasses within the specified package. Forces module imports to ensure all subclasses are loaded and discoverable. Returns results sorted by class name for consistent ordering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
package
|
ModuleType | None
|
The package to search for subclasses in. If None, searches the main package. Common use is winipyside root package. |
None
|
Returns:
| Type | Description |
|---|---|
list[type[Self]]
|
A sorted list of all non-abstract subclass types. |
Source code in src/winipyside/core/ui/base/base.py
classmethod
¶get_svg_icon(
svg_name: str, package: ModuleType | None = None
) -> QIcon
Load an SVG file and return it as a QIcon.
Locates SVG files in the resources package and creates Qt icons from them. Automatically appends .svg extension if not provided. The SVG is loaded from the assets, enabling dynamic icon theming and scaling.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
svg_name
|
str
|
The SVG filename (with or without .svg extension). |
required |
package
|
ModuleType | None
|
The package to search for SVG files. If None, uses the default resources package. Override for custom resource locations. |
None
|
Returns:
| Type | Description |
|---|---|
QIcon
|
A QIcon created from the SVG file, ready for use in UI widgets. |
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If the SVG file is not found in the resources. |
Source code in src/winipyside/core/ui/base/base.py
abstractmethod
¶Execute finalization operations after main setup.
This is the fourth and final lifecycle hook. Use this for cleanup, final configuration, or operations that should run after setup() is complete, such as layout adjustments or state initialization.
Source code in src/winipyside/core/ui/base/base.py
abstractmethod
¶Execute setup operations before main setup.
This is the second lifecycle hook. Use this for operations that should run after base_setup() but before setup(), such as signal connections that rely on base_setup() completing.
Source code in src/winipyside/core/ui/base/base.py
Switch the currently displayed page in the stacked widget.
Finds the page instance of the specified type and brings it to the front of the stacked widget, making it the visible page.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
page_cls
|
type[Base]
|
The page class type to display. The corresponding instance must already exist in the stack. |
required |
Raises:
| Type | Description |
|---|---|
StopIteration
|
If no page of the specified class exists in the stack. |
Source code in src/winipyside/core/ui/base/base.py
abstractmethod
¶Execute main UI initialization.
This is the third lifecycle hook. Contains the primary UI initialization logic, such as creating widgets, connecting signals, and populating components.
Source code in src/winipyside/core/ui/base/base.py
QABCLoggingMeta ¶
Bases: ABCLoggingMeta, type(QObject)
Metaclass combining ABC enforcement with Qt and logging integration.
This metaclass merges ABCLoggingMeta (which enforces abstract methods and logs implementation status) with QObject's metaclass. This enables Qt-based UI classes to use abstract methods while maintaining proper Qt initialization.
pages ¶
init module.
base ¶
init module.
base ¶
Base page module.
This module contains the base page class for the VideoVault application.
Bases: Base, QWidget
Abstract base class for all pages in the stacked widget navigation system.
A page is a full-screen view that can be displayed within a QStackedWidget. Each page inherits from BaseUI to get the standard lifecycle hooks and provides a top navigation bar with a menu dropdown. Pages are responsible for their own content layout and child widgets.
Attributes:
| Name | Type | Description |
|---|---|---|
v_layout |
Main vertical layout for the page content. |
|
h_layout |
Horizontal layout for top navigation bar. |
|
menu_button |
Menu button that provides navigation to other pages. |
|
base_window |
Reference to the containing BaseWindow. |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_window
|
Base
|
The parent BaseWindow containing this page's stack. |
required |
*args
|
Any
|
Additional positional arguments passed to parent QWidget. |
()
|
**kwargs
|
Any
|
Additional keyword arguments passed to parent QWidget. |
{}
|
Source code in src/winipyside/core/ui/pages/base/base.py
Create and configure the page navigation menu button.
Creates a dropdown menu button in the top-left corner that lists all available pages as menu actions. Clicking an action switches to that page. The menu auto-populates with all page subclasses from the window.
The menu uses SVG icons for a modern appearance and is aligned to the top-left of the navigation bar.
Source code in src/winipyside/core/ui/pages/base/base.py
Create a navigation button that switches to the specified page.
Creates a styled button with the target page's display name and connects it to automatically navigate to that page when clicked. The button is added to the provided layout.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
to_page_cls
|
type[Base]
|
The page class to navigate to when the button is clicked. |
required |
layout
|
QLayout
|
The layout to add the button to (typically h_layout or a child layout). |
required |
Returns:
| Type | Description |
|---|---|
QPushButton
|
The created QPushButton widget (if you need to store or modify it). |
Source code in src/winipyside/core/ui/pages/base/base.py
Initialize the page structure with vertical and horizontal layouts.
Creates the main vertical layout for page content, a horizontal layout for the top navigation bar, and registers this page with the base window. This is the first lifecycle hook and must run before other setup methods.
The layout structure is: - v_layout (QVBoxLayout) - Main page layout - h_layout (QHBoxLayout) - Top navigation/menu bar - [page content added here by subclasses]
Source code in src/winipyside/core/ui/pages/base/base.py
browser ¶
Browser page module.
This module contains the Browser page class for displaying web content within the application.
Browser ¶
Bases: Base
Web browser page for embedded internet browsing.
A page that provides full web browsing capabilities through an embedded Chromium-based browser. Includes navigation controls (back/forward/address bar) and automatic cookie tracking for web interactions.
Source code in src/winipyside/core/ui/pages/base/base.py
Create and add a web browser widget to the page.
Creates a BrowserWidget instance and adds it to the vertical layout, making the embedded browser available for web navigation. The browser automatically handles cookies and provides standard navigation controls.
Note: Method name has a typo (browser) but kept for backward compatibility.
Source code in src/winipyside/core/ui/pages/browser.py
Initialize the browser page with a web browser widget.
Creates and configures the BrowserWidget for web browsing and adds it to the page's layout. The browser provides full navigation capabilities.
Source code in src/winipyside/core/ui/pages/browser.py
player ¶
Player page module.
This module contains the player page class for the VideoVault application.
Player ¶
Bases: Base
Media player page for video playback with encryption support.
A page dedicated to video playback with full media controls (play/pause, speed control, volume, progress slider, fullscreen). Supports both regular and AES-GCM encrypted video files with seamless playback from encrypted sources without temporary file extraction.
The page manages a MediaPlayer widget and provides convenient methods for starting playback with optional position resumption.
Source code in src/winipyside/core/ui/pages/base/base.py
Play an AES-GCM encrypted video file with transparent decryption.
Switches to the player page and starts playback of the encrypted file. The file is decrypted on-the-fly during playback without extracting temporary files, providing secure playback of protected content.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Path
|
The file path to the encrypted video file to play. |
required |
aes_gcm
|
AESGCM
|
The AES-GCM cipher instance initialized with the decryption key. |
required |
position
|
int
|
The position to start playback from in milliseconds (default 0). |
0
|
Source code in src/winipyside/core/ui/pages/player.py
Play a regular (unencrypted) video file.
Switches to the player page and starts playback of the specified file. Delegates to play_file_from_func with the MediaPlayer's play_file method.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Path
|
The file path to the video file to play. |
required |
position
|
int
|
The position to start playback from in milliseconds (default 0). |
0
|
Source code in src/winipyside/core/ui/pages/player.py
play_file_from_func(
play_func: Callable[..., Any],
path: Path,
position: int = 0,
**kwargs: Any,
) -> None
Play a file using a provided playback function with page navigation.
A helper method that switches to the player page and invokes the specified play function. This pattern allows reusing the same playback logic for different file types (regular, encrypted, etc.) via different play functions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
play_func
|
Callable[..., Any]
|
The playback function to call (e.g., play_file or play_encrypted_file). |
required |
path
|
Path
|
The file path to play. |
required |
position
|
int
|
The position to start playback from in milliseconds (default 0). |
0
|
**kwargs
|
Any
|
Additional keyword arguments passed to play_func (e.g., aes_gcm for encryption). |
{}
|
Source code in src/winipyside/core/ui/pages/player.py
Initialize the player page with a media player widget.
Creates a MediaPlayer widget and adds it to the page's layout, enabling video playback with full controls.
Source code in src/winipyside/core/ui/pages/player.py
abstractmethod
¶widgets ¶
init module.
browser ¶
Browser widget module.
This module contains the Browser widget class for embedded web browsing with cookie management.
Browser ¶
Bases: QWebEngineView
Chromium-based web browser widget with navigation controls and cookie tracking.
A self-contained browser widget that extends QWebEngineView with a complete UI including back/forward buttons, address bar, and go button. Automatically tracks and stores cookies for each domain, with conversion between Qt and Python cookie formats.
The browser initializes with Google as the home page and provides methods to retrieve cookies in both QNetworkCookie and http.cookiejar.Cookie formats.
Attributes:
| Name | Type | Description |
|---|---|---|
cookies |
Dict mapping domain strings to lists of QNetworkCookie objects. |
|
address_bar |
QLineEdit widget showing the current URL. |
|
back_button |
QPushButton for browser back navigation. |
|
forward_button |
QPushButton for browser forward navigation. |
|
go_button |
QPushButton to navigate to the URL in the address bar. |
Creates the browser UI (address bar, buttons), connects signals for navigation and cookie tracking, and loads the default homepage. The browser widget is immediately added to the provided layout.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parent_layout
|
QLayout
|
The parent QLayout to add the complete browser widget to. |
required |
*args
|
Any
|
Additional positional arguments passed to parent QWebEngineView. |
()
|
**kwargs
|
Any
|
Additional keyword arguments passed to parent QWebEngineView. |
{}
|
Source code in src/winipyside/core/ui/widgets/browser.py
property
¶Get all tracked cookies converted to http.cookiejar.Cookie format.
Provides cookies in Python's standard http.cookiejar.Cookie format, suitable for use with the requests library, urllib, or other Python HTTP clients. This is useful for exporting cookies from the browser for external HTTP operations.
Returns:
| Type | Description |
|---|---|
dict[str, list[Cookie]]
|
Dictionary mapping domain strings to lists of http.cookiejar.Cookie objects. |
Connect the page load completion signal to the handler.
Connects QWebEngineView's loadFinished signal to update the address bar when a page finishes loading.
Source code in src/winipyside/core/ui/widgets/browser.py
Initialize cookie tracking and connect the cookie added signal.
Creates the cookies dictionary (defaulting empty lists per domain) and connects the QWebEngineCookieStore's cookieAdded signal to the handler. Call this during initialization to enable automatic cookie tracking.
Source code in src/winipyside/core/ui/widgets/browser.py
Connect browser signals to their corresponding handler methods.
Establishes connections for: - Page load completion (updates address bar with new URL) - Cookie addition (tracks new cookies by domain)
Source code in src/winipyside/core/ui/widgets/browser.py
Get all tracked cookies for a specific domain in Qt format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
domain
|
str
|
The domain to retrieve cookies for (e.g., 'github.com'). |
required |
Returns:
| Type | Description |
|---|---|
list[QNetworkCookie]
|
List of QNetworkCookie objects for the specified domain. |
Source code in src/winipyside/core/ui/widgets/browser.py
Get all tracked cookies for a specific domain in http.cookiejar format.
Retrieves domain cookies and converts them to Python's standard http.cookiejar format, useful for exporting to requests, urllib, or other HTTP libraries.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
domain
|
str
|
The domain to retrieve cookies for (e.g., 'github.com'). |
required |
Returns:
| Type | Description |
|---|---|
list[Cookie]
|
List of http.cookiejar.Cookie objects for the specified domain. |
Source code in src/winipyside/core/ui/widgets/browser.py
Load the default homepage when the browser initializes.
Loads Google's homepage (https://www.google.com/) as the initial page, providing a familiar starting point for users.
Source code in src/winipyside/core/ui/widgets/browser.py
Create the navigation bar with back, forward, address input, and go button.
Constructs a horizontal layout containing: - Back button (previous page) - Forward button (next page) - Address input field (URL entry) - Go button (navigate to entered URL)
The address bar updates automatically when pages load and handles Enter key presses for quick navigation.
Source code in src/winipyside/core/ui/widgets/browser.py
Create the complete browser widget and add it to the parent layout.
Constructs the visual hierarchy: - QWidget container (browser_widget) - QVBoxLayout - Address bar (horizontal layout with buttons and input) - QWebEngineView (actual browser)
Sets appropriate size policies and adds the complete widget to the parent layout.
Source code in src/winipyside/core/ui/widgets/browser.py
Load the URL currently entered in the address bar.
Retrieves the text from the address bar and loads it as the browser's current URL. Called when the user presses Enter in the address bar or clicks the Go button.
Source code in src/winipyside/core/ui/widgets/browser.py
on_cookie_added(cookie: Any) -> None
Handle new cookie added to the store and track it by domain.
Called automatically when a cookie is set during web browsing. Stores the cookie in the cookies dictionary using the cookie's domain as the key.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cookie
|
Any
|
The QNetworkCookie that was added to the cookie store. |
required |
Source code in src/winipyside/core/ui/widgets/browser.py
on_load_finished(_ok: bool) -> None
Handle page load completion and update the address bar.
Called when a page finishes loading (successfully or not). Updates the address bar to reflect the current URL of the loaded page.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
_ok
|
bool
|
Boolean indicating successful page load (unused, kept for signal compatibility). |
required |
Source code in src/winipyside/core/ui/widgets/browser.py
qcookie_to_httpcookie(qcookie: QNetworkCookie) -> Cookie
Convert a single Qt network cookie to a Python http.cookiejar cookie.
Translates between Qt's QNetworkCookie format and Python's http.cookiejar.Cookie format, preserving all attributes including name, value, domain, path, security flags, expiration, and HTTP-only status.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
qcookie
|
QNetworkCookie
|
The QNetworkCookie to convert. |
required |
Returns:
| Type | Description |
|---|---|
Cookie
|
The equivalent http.cookiejar.Cookie object. |
Source code in src/winipyside/core/ui/widgets/browser.py
Convert a list of Qt network cookies to Python http.cookiejar cookies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
qcookies
|
list[QNetworkCookie]
|
List of QNetworkCookie objects to convert. |
required |
Returns:
| Type | Description |
|---|---|
list[Cookie]
|
List of equivalent http.cookiejar.Cookie objects preserving all attributes. |
Source code in src/winipyside/core/ui/widgets/browser.py
Set the browser to expand and fill available space.
Configures the size policy to expand in both horizontal and vertical directions, allowing the browser to grow with the parent widget.
Source code in src/winipyside/core/ui/widgets/browser.py
Update the address bar to display the given URL.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
QUrl
|
The QUrl to display in the address bar text field. |
required |
clickable_widget ¶
Clickable widget module.
This module provides custom Qt widgets that emit clicked signals for interactive UI elements.
ClickableVideoWidget ¶
Bases: QVideoWidget
Video display widget that emits a clicked signal on left mouse button press.
Extends QVideoWidget to make video playback areas interactive by emitting a custom clicked signal when clicked. Commonly used for play/pause toggling or fullscreen mode switching in media player UIs.
Signals
clicked: Emitted when the left mouse button is pressed on the video widget.
mousePressEvent(event: Any) -> None
Handle left mouse button press on video and emit clicked signal.
Emits the clicked signal when the left mouse button is pressed on the video widget, then passes the event to the parent class for standard processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event
|
Any
|
The QMouseEvent containing button type and position information. |
required |
Source code in src/winipyside/core/ui/widgets/clickable_widget.py
ClickableWidget ¶
Bases: QWidget
Regular QWidget that emits a clicked signal on left mouse button press.
A simple extension of QWidget that makes it interactive by emitting a custom clicked signal when the user clicks on it. Useful for creating custom button-like areas or interactive widget regions that don't inherit from QPushButton.
Signals
clicked: Emitted when the left mouse button is pressed on the widget.
mousePressEvent(event: Any) -> None
Handle left mouse button press and emit clicked signal.
Emits the clicked signal when the left mouse button is pressed on the widget, then passes the event to the parent class for standard processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event
|
Any
|
The QMouseEvent containing button type and position information. |
required |
Source code in src/winipyside/core/ui/widgets/clickable_widget.py
media_player ¶
Media player widget module.
This module contains the MediaPlayer widget class with full playback controls.
MediaPlayer ¶
Bases: QMediaPlayer
Full-featured video player widget.
A complete media player implementation with UI controls for play/pause, speed selection, volume control, progress seeking, and fullscreen mode. Supports both regular and AES-GCM encrypted video files with transparent decryption during playback.
The player automatically manages IO device lifecycle and provides throttled slider updates to prevent excessive position changes during scrubbing.
Attributes:
| Name | Type | Description |
|---|---|---|
video_widget |
ClickableVideoWidget displaying the video. |
|
audio_output |
QAudioOutput for volume control. |
|
progress_slider |
QSlider for playback position control. |
|
volume_slider |
QSlider for volume adjustment (0-100). |
|
playback_button |
Play/pause toggle button. |
|
speed_button |
Playback speed selector button. |
|
fullscreen_button |
Fullscreen mode toggle button. |
Creates the complete player widget with video display and control bars (above and below the video) and adds it to the parent layout.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parent_layout
|
QLayout
|
The parent layout to add the complete player widget to. |
required |
*args
|
Any
|
Additional positional arguments passed to parent QMediaPlayer. |
()
|
**kwargs
|
Any
|
Additional keyword arguments passed to parent QMediaPlayer. |
{}
|
Source code in src/winipyside/core/ui/widgets/media_player.py
Create a fullscreen toggle button and discover sibling widgets to hide.
Creates a button with fullscreen/exit-fullscreen icons and discovers which other widgets in the window should be hidden when entering fullscreen mode. Placed in the right control section.
Source code in src/winipyside/core/ui/widgets/media_player.py
Create the top control bar with organized button sections.
Creates a horizontal layout divided into left, center, and right sections, then populates each with appropriate controls: - Left: Speed control - Center: Play/pause button - Right: Volume control and fullscreen button
This layout pattern allows flexible positioning of controls.
Source code in src/winipyside/core/ui/widgets/media_player.py
Create the bottom control bar with the progress slider.
Creates a horizontal layout for the bottom controls and adds the seekable progress slider for playback position control.
Source code in src/winipyside/core/ui/widgets/media_player.py
Create a play/pause toggle button in the center control area.
Creates a button with play/pause icons that toggles between playing and paused states. The button is placed in the center control section.
Source code in src/winipyside/core/ui/widgets/media_player.py
Create the seekable progress slider and connect position signals.
Creates a horizontal slider for playback position and establishes connections between the media player's position/duration signals and the slider, with throttled updates to prevent excessive updates during scrubbing.
Source code in src/winipyside/core/ui/widgets/media_player.py
Create a speed selector button with dropdown menu.
Creates a button showing the current playback speed (default 1.0x) with a dropdown menu listing predefined speed options (0.2x to 5x). Placed in the left control section.
Source code in src/winipyside/core/ui/widgets/media_player.py
Create a horizontal volume slider with 0-100 range.
Creates a slider for user volume adjustment and connects it to the volume change handler. Placed in the left control section.
Source code in src/winipyside/core/ui/widgets/media_player.py
change_speed(speed: float) -> None
Set the playback speed multiplier and update the speed button label.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
speed
|
float
|
The new playback speed multiplier (e.g., 1.0 for normal, 2.0 for 2x). |
required |
Source code in src/winipyside/core/ui/widgets/media_player.py
Create the video display widget with audio output configuration.
Creates a ClickableVideoWidget, connects its click signal for fullscreen toggling, sets it to expand and fill available space, and configures audio output.
Source code in src/winipyside/core/ui/widgets/media_player.py
Create the complete media player widget structure.
Builds the visual hierarchy: - QWidget container (media_player_widget) - QVBoxLayout - Control bar (above) with play, speed, volume, fullscreen buttons - ClickableVideoWidget (video display) - Control bar (below) with progress slider
The structure allows for hiding/showing control bars independently.
Source code in src/winipyside/core/ui/widgets/media_player.py
on_slider_moved(position: int) -> None
Handle slider movement with throttled position updates.
Implements throttling (minimum 100ms between updates) to prevent excessive seeking during fast slider drags, improving performance and reducing audio stuttering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
position
|
int
|
The new position from the slider in milliseconds. |
required |
Source code in src/winipyside/core/ui/widgets/media_player.py
Seek to the slider position when the user releases it.
Ensures the final position is set even if the last move event was throttled.
Source code in src/winipyside/core/ui/widgets/media_player.py
Toggle visibility of all media control bars when video is clicked.
Provides a common media player pattern where clicking the video hides controls for a cleaner viewing experience, and clicking again shows them.
Source code in src/winipyside/core/ui/widgets/media_player.py
on_volume_changed(value: int) -> None
Update audio output volume based on slider value.
Converts the slider value (0-100) to audio volume range (0.0-1.0) and applies it to the audio output.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
int
|
The slider value from 0-100. |
required |
Source code in src/winipyside/core/ui/widgets/media_player.py
Play an AES-GCM encrypted video file with transparent decryption.
Opens an encrypted video file and decrypts it on-the-fly during playback. No temporary files are created; decryption happens in memory as needed. Supports seeking without decrypting the entire file first.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Path
|
The file path to the encrypted video file to play. |
required |
aes_gcm
|
AESGCM
|
The AES-GCM cipher instance initialized with the correct key. |
required |
position
|
int
|
The position to start playback from in milliseconds (default 0). |
0
|
Source code in src/winipyside/core/ui/widgets/media_player.py
Play a regular (unencrypted) video file.
Opens the file at the given path and starts playback. The file must be in a format supported by the system's media engine (MP4, WebM, MKV, etc.).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Path
|
The file path to the video file to play. |
required |
position
|
int
|
The position to start playback from in milliseconds (default 0). |
0
|
Source code in src/winipyside/core/ui/widgets/media_player.py
play_video(
io_device: PyQIODevice,
source_url: QUrl,
position: int = 0,
) -> None
Start playback of a video from the specified IO device.
Stops any current playback, sets up the new source, and starts playing. Uses a timer to delay playback start, preventing freezing when switching between videos. Automatically resumes to the specified position once media is buffered.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
io_device
|
PyQIODevice
|
The PyQIODevice to use as the media source. |
required |
source_url
|
QUrl
|
The QUrl representing the source location for error reporting. |
required |
position
|
int
|
The position to resume playback from in milliseconds (default 0). |
0
|
Source code in src/winipyside/core/ui/widgets/media_player.py
resume_to_position(
status: MediaStatus, position: int
) -> None
Seek to the target position once media is buffered and ready.
Called when media status changes. Once the media reaches BufferedMedia status (fully buffered and ready to play), seeks to the specified position and disconnects this handler to avoid repeated seeking.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
status
|
MediaStatus
|
The current media status. |
required |
position
|
int
|
The target position to seek to in milliseconds. |
required |
Source code in src/winipyside/core/ui/widgets/media_player.py
set_slider_range(duration: int) -> None
Set the progress slider range to match media duration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
duration
|
int
|
The total media duration in milliseconds. |
required |
Source code in src/winipyside/core/ui/widgets/media_player.py
set_source_and_play(
io_device: PyQIODevice, source_url: QUrl
) -> None
Set the media source and start playback.
Called via timer to delay playback start and prevent freezing. Configures the IO device as the source and begins playback.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
io_device
|
PyQIODevice
|
The PyQIODevice to use as the media source. |
required |
source_url
|
QUrl
|
The QUrl representing the source location. |
required |
Source code in src/winipyside/core/ui/widgets/media_player.py
set_source_device(
io_device: PyQIODevice, source_url: QUrl
) -> None
Configure the media source from an IO device.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
io_device
|
PyQIODevice
|
The PyQIODevice to use as the media source. |
required |
source_url
|
QUrl
|
The QUrl representing the source location for error reporting. |
required |
Source code in src/winipyside/core/ui/widgets/media_player.py
Stop playback and close the current IO device.
Safely closes any previously opened IO device to release resources and prevent memory leaks.
Source code in src/winipyside/core/ui/widgets/media_player.py
Toggle between fullscreen and windowed mode.
Switches the window to fullscreen (hiding sibling widgets and controls) or back to windowed mode (showing everything). Updates the button icon accordingly.
Source code in src/winipyside/core/ui/widgets/media_player.py
Toggle between play and pause states and update the button icon.
If currently playing, pauses and shows the play icon. If paused or stopped, starts playback and shows the pause icon.
Source code in src/winipyside/core/ui/widgets/media_player.py
update_slider_position(position: int) -> None
Update the progress slider to reflect current playback position.
Only updates the slider if the user is not currently dragging it, preventing jumpy behavior during manual seeking.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
position
|
int
|
The current media position in milliseconds. |
required |
Source code in src/winipyside/core/ui/widgets/media_player.py
notification ¶
Notification widget module.
This module provides a notification toast widget for displaying temporary messages.
Notification ¶
Bases: Toast
Toast notification widget with automatic text truncation.
A configurable toast notification that appears in the top-middle of the screen and automatically disappears after a set duration. Truncates long title and text to fit within half the window width, ensuring notifications don't expand the window or look excessively large.
Signals inherit from the underlying Toast class and fire when the notification is shown/hidden.
Attributes:
| Name | Type | Description |
|---|---|---|
duration |
How long the notification stays visible in milliseconds (default 10000). |
|
icon |
The icon to display with the notification. |
Creates a toast notification with the given title, text, and icon. The notification automatically appears in the top-middle of the active window and disappears after the specified duration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str
|
The notification title (will be truncated to window width). |
required |
text
|
str
|
The notification body text (will be truncated to window width). |
required |
icon
|
ToastIcon
|
The ToastIcon to display. Defaults to INFORMATION. |
INFORMATION
|
duration
|
int
|
How long the notification stays visible in milliseconds. Defaults to 10000 (10 seconds). |
10000
|
Source code in src/winipyside/core/ui/widgets/notification.py
set_text(text: str) -> None
Set the notification body text and truncate if necessary.
Truncates the text to fit within half the active window width before displaying. This prevents excessively long messages from making the notification too wide.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
The notification text to set (may be longer than the window). |
required |
Source code in src/winipyside/core/ui/widgets/notification.py
set_title(title: str) -> None
Set the notification title and truncate if necessary.
Truncates the title to fit within half the active window width before displaying. This prevents excessively long titles from making the notification too wide.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str
|
The title text to set (may be longer than the window). |
required |
Source code in src/winipyside/core/ui/widgets/notification.py
Truncate a string to fit within half the active window width.
Calculates half the width of the currently active window and truncates the string to fit within that width. Uses a fallback of 500 pixels if no window is active, ensuring the function always returns a reasonable result.
This prevents notifications from becoming too wide and potentially expanding their parent window or becoming unreadable.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
string
|
str
|
The string to potentially truncate. |
required |
Returns:
| Type | Description |
|---|---|
str
|
The string, truncated if necessary to fit within half the window width. |
Source code in src/winipyside/core/ui/widgets/notification.py
windows ¶
init module.
base ¶
init module.
base ¶
Base window module.
This module contains the base window class for the VideoVault application.
Bases: Base, QMainWindow
Abstract base class for the main application window.
A QMainWindow-based window that implements the stacked widget navigation pattern. Subclasses define which pages are available and which page should be shown at startup. The window manages a QStackedWidget containing all pages and handles page switching.
Attributes:
| Name | Type | Description |
|---|---|---|
stack |
The QStackedWidget managing all pages. |
Source code in src/winipyside/core/ui/base/base.py
add_page(page: Base) -> None
Add a page to the stacked widget.
Called by page instances during their setup to register themselves with the window. Each page is added to the stack widget.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
page
|
Base
|
The BasePage instance to add to the stack. |
required |
Source code in src/winipyside/core/ui/windows/base/base.py
Initialize the main window structure with title and stacked pages.
Sets the window title to the window's display name, creates the stacked widget, instantiates all pages, and sets the starting page. This is the first lifecycle hook and establishes the complete window structure.
Source code in src/winipyside/core/ui/windows/base/base.py
abstractmethod
classmethod
¶Get all page classes to be added to this window.
Subclasses must return a list of all page classes that should be available in the window's stack. These pages will be instantiated during window setup.
Returns:
| Type | Description |
|---|---|
list[type[Base]]
|
A list of BasePage subclass types to include in the window. |
Source code in src/winipyside/core/ui/windows/base/base.py
abstractmethod
classmethod
¶Get the page class to display when the window first opens.
Subclasses must return the page class that should be shown initially. This page must be one of the classes returned by get_all_page_classes().
Returns:
| Type | Description |
|---|---|
type[Base]
|
The BasePage subclass type to display at startup. |
Source code in src/winipyside/core/ui/windows/base/base.py
Instantiate all page classes and add them to the stack.
Iterates through all page classes returned by get_all_page_classes() and instantiates each one, which triggers their base_setup() hooks and adds them to the stack. Must be called during window initialization.
Source code in src/winipyside/core/ui/windows/base/base.py
rig ¶
init module.
configs ¶
init module.
configs ¶
Configs for pyrig.
All subclasses of ConfigFile in the configs package are automatically called.
HealthCheckWorkflowConfigFile ¶
Bases: PySideWorkflowConfigFileMixin, HealthCheckWorkflowConfigFile
Health check workflow.
Extends winiutils health check workflow to add additional steps. This is necessary to make pyside6 work on github actions which is a headless linux environment.
step_run_tests ¶
Get the pre-commit step.
We need to add some env vars so QtWebEngine doesn't try to use GPU acceleration etc.
Source code in src/winipyside/rig/configs/configs.py
PySideWorkflowConfigFileMixin ¶
Bases: WorkflowConfigFile
Mixin to add PySide6-specific workflow steps.
This mixin provides common overrides for PySide6 workflows to work on GitHub Actions headless Linux environments.
step_install_pyside_system_dependencies ¶
Get the step to install PySide6 dependencies.
Source code in src/winipyside/rig/configs/configs.py
steps_core_installed_setup ¶
Get the core installed setup steps.
We need to install additional system dependencies for pyside6.
Source code in src/winipyside/rig/configs/configs.py
ReleaseWorkflowConfigFile ¶
Bases: PySideWorkflowConfigFileMixin, ReleaseWorkflowConfigFile
Release workflow.
Extends winiutils release workflow to add additional steps. This is necessary to make pyside6 work on github actions which is a headless linux environment.
resources ¶
init module.
tools ¶
Tool wrappers for CLI tools used in development workflows.
Tools are subclasses of Tool providing methods that return Args objects
for type-safe command construction and execution.