Files
douyin_guaji-main/gui/components/config_manager.py
T
Your Name 0b5f150691 Refactor and clean up code across multiple scripts
- Removed trailing whitespace and ensured files end with a single newline in cleanup_unused_files.py.
- Added fix_trailing_whitespace.py to batch remove trailing whitespace from Python files.
- Updated install_dependencies.py to improve dependency installation prompts.
- Cleaned up pick_coords.py by removing unnecessary whitespace and improving code readability.
- Enhanced region_selector.py by disabling specific pylint checks for better compatibility with third-party libraries.
- Improved WPS流程图生成工具.py by cleaning up whitespace and enhancing readability.
- Updated __init__.py in typings to remove unnecessary lines.
- Modified app.js to adjust default configuration values and clean up unused code.
2026-01-02 23:57:03 +08:00

45 lines
925 B
Python

"""配置管理组件
包含配置加载、保存等功能的GUI组件。
"""
from __future__ import annotations
from typing import Any, Callable
import tkinter as tk
from tkinter import ttk
from gui.gui_core import read_config, write_config
def load_config_to_ui(
cfg: dict[str, Any],
vars_dict: dict[str, Any],
on_line: Callable[[str], None],
) -> None:
"""从配置文件加载到UI变量。
参数:
cfg: 配置字典
vars_dict: UI变量字典
on_line: 日志输出回调
"""
# TODO: 实现配置加载逻辑
# 临时从原文件导入
pass
def save_ui_to_config(
vars_dict: dict[str, Any],
on_line: Callable[[str], None],
) -> None:
"""将UI变量保存到配置文件。
参数:
vars_dict: UI变量字典
on_line: 日志输出回调
"""
# TODO: 实现配置保存逻辑
# 临时从原文件导入
pass