Add centralized logging mechanism that simultaneously outputs to console and GUI log components, improving code maintainability and consistency. Changes: - Add gui/log_config.py for centralized logging configuration - Add gui/widgets/log_handler.py as bridge between logging and LogText - Integrate unified logging into DataExtractionTab and MaterialValidationTab - Initialize logging system in MainWindow on startup - Improve error messages in material_status_validator for empty results - Add documentation for logging mechanism and refactoring Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
13 lines
307 B
Python
13 lines
307 B
Python
"""
|
|
GUI 自定义组件模块
|
|
|
|
提供可复用的 UI 组件。
|
|
"""
|
|
|
|
from .file_selector import FileSelector
|
|
from .log_text import LogText
|
|
from .production_id_input import ProductionIdInput
|
|
from .log_handler import GuiTextHandler
|
|
|
|
__all__ = ['FileSelector', 'LogText', 'ProductionIdInput', 'GuiTextHandler']
|