API Reference
Complete API documentation for all ThreePaneWindows classes and functions.
API Modules:
Overview
The ThreePaneWindows API is organized into several modules:
Core Layout Classes
alias of |
|
A dockable three-pane window with detachable left and right frames. |
|
Enhanced professional dockable three-pane window with theming and advanced UI. |
Configuration Classes
|
Configuration for a pane in the three-pane window. |
Theming System
|
Manages theme application and platform-specific theme detection. |
Get the global theme manager instance. |
|
|
Set the global theme for all ThreePaneWindows components. |
|
Enumeration of available theme types. |
Icon Utilities
Get recommended icon formats for the current platform. |
|
|
Validate an icon path for cross-platform compatibility. |
Quick Reference
Most Common Classes
For most applications, you’ll primarily use these classes:
from threepanewindows import (
FixedThreePaneWindow, # Simple fixed layout
DockableThreePaneWindow, # Resizable/dockable layout
EnhancedDockableThreePaneWindow, # Full-featured layout
)
Basic Usage Pattern
import tkinter as tk
from threepanewindows import FixedThreePaneWindow
root = tk.Tk()
window = FixedThreePaneWindow(root)
window.pack(fill=tk.BOTH, expand=True)
# Access panes
left_pane = window.left_pane
center_pane = window.center_pane
right_pane = window.right_pane
Common Parameters
Most layout classes accept these common parameters:
parent- The parent Tkinter widgetleft_width- Initial width of left pane (pixels)right_width- Initial width of right pane (pixels)min_pane_size- Minimum size for any pane (pixels)theme- Theme name or ThemeType enum value
Error Handling
All classes raise appropriate exceptions for invalid parameters:
ValueError- Invalid parameter valuesTypeError- Wrong parameter typesRuntimeError- Runtime configuration errors
Type Hints
All public APIs include comprehensive type hints for better IDE support and static analysis.