feat: add Production ID input widget and UI configuration
- Add ProductionIdInput widget with placeholder and multi-line support - Add UIConfig class for font family, font size, and input width settings - Refactor data extraction tab to use horizontal PanedWindow layout - Left panel: Production ID text input (draggable width) - Right panel: control panel and log output - Share Production IDs between data extraction and material validation tabs - Add UI settings group in settings page (font selection, size, input width) - For User users: automatically use shared Production IDs, simplified UI - Apply font settings to input and log widgets - Use sashpos() to set initial pane width correctly Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -178,3 +178,9 @@ class LogText(tk.Frame):
|
||||
def grid(self, **kwargs):
|
||||
"""Grid 布局"""
|
||||
super().grid(**kwargs)
|
||||
|
||||
def apply_font(self, font_family: str, font_size: int):
|
||||
"""应用字体设置"""
|
||||
from tkinter import font as tk_font
|
||||
font_spec = tk_font.Font(family=font_family, size=font_size)
|
||||
self.text.configure(font=font_spec)
|
||||
|
||||
Reference in New Issue
Block a user