style(DLPilot): 关于弹窗补作者/硬件正式命名; 卡片标题行垂直居中
This commit is contained in:
Binary file not shown.
@@ -46,7 +46,8 @@ DLPilot/
|
|||||||
|
|
||||||
## 3. GUI 使用
|
## 3. GUI 使用
|
||||||
|
|
||||||
主窗口为双栏仪表盘(布局设计稿:`UI参考布局.svg`),默认深色外观,顶栏可切换 Dark/Light/System:
|
主窗口为双栏仪表盘(布局设计稿:`UI参考布局.svg`),默认跟随系统深/浅色外观
|
||||||
|
(顶栏可切换 Dark/Light/System),顶栏右侧"关于"按钮内含软件信息:
|
||||||
|
|
||||||
```
|
```
|
||||||
左列(HDMI 源端) 右列(光机控制 RS485)
|
左列(HDMI 源端) 右列(光机控制 RS485)
|
||||||
@@ -61,12 +62,13 @@ DLPilot/
|
|||||||
2. **切分辨率**:"支持的模式"卡片里选模式 → "应用";测完点"恢复";
|
2. **切分辨率**:"支持的模式"卡片里选模式 → "应用";测完点"恢复";
|
||||||
3. **投测试图**:"测试图案"卡片先选**测试卡区域**(640x360 / 800x600 / full)→
|
3. **投测试图**:"测试图案"卡片先选**测试卡区域**(640x360 / 800x600 / full)→
|
||||||
点图案按钮全屏投放,按 **ESC** 或点击退出;R/G/B 纯色按钮(55/AA/FF,按通道着色)
|
点图案按钮全屏投放,按 **ESC** 或点击退出;R/G/B 纯色按钮(55/AA/FF,按通道着色)
|
||||||
用于 RGB 位交换类测试;自定义图片点齿轮按钮配置(图片自动复制到 exe 旁);
|
用于 RGB 位交换类测试;自定义图片点齿轮按钮配置(图片自动复制到 exe 旁),
|
||||||
|
"校准图案"一排为 3D 光固化测试/校准图预留槽位;
|
||||||
4. **光机控制**:右列选串口与参数(波特率/数据位/校验/停止位,默认 115200 8-N-1)→ 连接 →
|
4. **光机控制**:右列选串口与参数(波特率/数据位/校验/停止位,默认 115200 8-N-1)→ 连接 →
|
||||||
快捷按钮/预设下拉/自定义输入(回车即发);"查DMD温度""查LAMP温度"读温度
|
快捷按钮/预设下拉/自定义输入(回车即发);"查DMD温度""查LAMP温度"读温度
|
||||||
(应答实时填入按钮旁的显示框);快捷滑条:光强拖动后"下发 M731S",
|
(应答实时填入按钮旁的显示框);快捷滑条:光强拖动后"下发电流值",
|
||||||
定时毫秒后"开光机(定时)"(0=不限时 M730S0),TEC 凝露点滑条/输入框
|
定时毫秒后"开光机(定时)"(0=不限时 M730S0),TEC 凝露点滑条/输入框
|
||||||
(200-350 即 20.0-35.0°C)后"下发 M8S";数值框输入后回车自动限幅同步;
|
(200-350 即 20.0-35.0°C)后"下发温度值";数值框输入后回车自动限幅同步;
|
||||||
5. 测试卡区域、自定义栏位与串口记忆(含参数)自动保存在 exe 旁的 `pattern_slots.json`。
|
5. 测试卡区域、自定义栏位与串口记忆(含参数)自动保存在 exe 旁的 `pattern_slots.json`。
|
||||||
|
|
||||||
## 4. 典型测试场景
|
## 4. 典型测试场景
|
||||||
|
|||||||
@@ -117,15 +117,15 @@ class App(ctk.CTk):
|
|||||||
border_color=('gray70', 'gray30'))
|
border_color=('gray70', 'gray30'))
|
||||||
head = ctk.CTkFrame(card, fg_color='transparent')
|
head = ctk.CTkFrame(card, fg_color='transparent')
|
||||||
head.pack(fill='x', padx=12, pady=(8, 0))
|
head.pack(fill='x', padx=12, pady=(8, 0))
|
||||||
ctk.CTkLabel(head, text=title, font=BOLD, anchor='w').pack(side='left')
|
ctk.CTkLabel(head, text=title, font=BOLD, anchor='w').pack(side='left', fill='y')
|
||||||
if right_widget is not None: # 自定义控件(如 电流读数+查电流)
|
if right_widget is not None: # 自定义控件(如 电流读数+查电流)
|
||||||
right_widget.pack(side='right')
|
right_widget.pack(side='right', fill='y')
|
||||||
if right_label is not None:
|
if right_label is not None:
|
||||||
ctk.CTkLabel(head, textvariable=right_label,
|
ctk.CTkLabel(head, textvariable=right_label,
|
||||||
text_color='gray60').pack(side='right')
|
text_color='gray60').pack(side='right', fill='y')
|
||||||
if button:
|
if button:
|
||||||
ctk.CTkButton(head, text=button, width=92, height=24,
|
ctk.CTkButton(head, text=button, width=92,
|
||||||
command=command).pack(side='right')
|
command=command).pack(side='right', fill='y')
|
||||||
content = ctk.CTkFrame(card, fg_color='transparent')
|
content = ctk.CTkFrame(card, fg_color='transparent')
|
||||||
content.pack(fill='both', expand=True, padx=12, pady=(2, 10))
|
content.pack(fill='both', expand=True, padx=12, pady=(2, 10))
|
||||||
return card, content
|
return card, content
|
||||||
@@ -645,7 +645,8 @@ class App(ctk.CTk):
|
|||||||
for line in ('EDID 查看 / 逐字节解析 / 分辨率切换',
|
for line in ('EDID 查看 / 逐字节解析 / 分辨率切换',
|
||||||
'测试图案与校准图全屏投屏',
|
'测试图案与校准图全屏投屏',
|
||||||
'RS485 光机控制: 开关光机 / 光强 / 定时 / 温度 / TEC',
|
'RS485 光机控制: 开关光机 / 光强 / 定时 / 温度 / TEC',
|
||||||
'配套硬件: LT8619C → DLPC3421 转接板 (GD32E230 网关)'):
|
'配套硬件: DLPilot(HDMI-0.16" DLP 转接板)',
|
||||||
|
'作者: Hulk'):
|
||||||
ctk.CTkLabel(box, text='· ' + line, anchor='w').pack(anchor='w', pady=1)
|
ctk.CTkLabel(box, text='· ' + line, anchor='w').pack(anchor='w', pady=1)
|
||||||
ctk.CTkLabel(box, text='仓库: ' + REPO_URL, anchor='w',
|
ctk.CTkLabel(box, text='仓库: ' + REPO_URL, anchor='w',
|
||||||
text_color='#3B8ED0').pack(anchor='w', pady=(12, 0))
|
text_color='#3B8ED0').pack(anchor='w', pady=(12, 0))
|
||||||
|
|||||||
Reference in New Issue
Block a user