Skip to content

Commit 00d27d3

Browse files
committed
fix:修改了一些文字显示内容
1 parent c4b3b10 commit 00d27d3

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

build_windows.bat

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,36 @@
11
@echo off
22
setlocal
33

4-
REM Windows 一键打包脚本(需已安装 Python 3.10+
4+
REM Windows 一键打包脚本(使用虚拟环境纯净打包,有效减小体积
55
REM 输出 exe: dist\FlowchartBgRemover.exe
66

7+
REM 1. 创建并激活独立的虚拟环境,避免全局包的污染
8+
python -m venv build_env
9+
call build_env\Scripts\activate.bat
10+
711
python -m pip install -U pip
812
python -m pip install -U pillow pyinstaller
913

14+
REM 2. 打包并显式排除常见的大型无用库
1015
pyinstaller ^
1116
--noconfirm ^
1217
--clean ^
1318
--onefile ^
1419
--windowed ^
1520
--name FlowchartBgRemover ^
21+
--exclude-module numpy ^
22+
--exclude-module pandas ^
23+
--exclude-module matplotlib ^
24+
--exclude-module scipy ^
25+
--exclude-module PyQt5 ^
26+
--exclude-module PySide2 ^
27+
--exclude-module PyQt6 ^
28+
--exclude-module PySide6 ^
1629
qubeijing.py
1730

31+
REM 退出虚拟环境
32+
call deactivate
33+
1834
echo.
1935
echo 打包完成,exe 在 dist\FlowchartBgRemover.exe
2036
pause

qubeijing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def __init__(self, root: tk.Tk) -> None:
162162
self.input_kind = tk.StringVar(value="file")
163163
self.input_path = tk.StringVar()
164164
self.output_dir = tk.StringVar()
165-
self.mode = tk.StringVar(value="去白边(dehalo)")
165+
self.mode = tk.StringVar(value="强力去除(dehalo)")
166166
self.threshold = tk.IntVar(value=245)
167167
self.suffix = tk.StringVar(value="_nobg")
168168
self.running = False
@@ -209,7 +209,7 @@ def _build_ui(self) -> None:
209209
mode_combo = ttk.Combobox(
210210
row4,
211211
textvariable=self.mode,
212-
values=["去白边(dehalo)", "仅纯白(strict)", "近白色(near)"],
212+
values=["强力去除(dehalo)", "仅纯白(strict)", "近白色(near)"],
213213
state="readonly",
214214
width=16,
215215
)
@@ -229,7 +229,7 @@ def _build_ui(self) -> None:
229229
self.start_btn.pack(side="left")
230230

231231
help_text = (
232-
"模式说明: dehalo=去白边(推荐), strict=仅删纯白, near=删除近白。"
232+
"模式说明: dehalo=强力去除(推荐), strict=仅删纯白, near=删除近白。"
233233
)
234234
ttk.Label(row5, text=help_text).pack(side="left", padx=(12, 0))
235235

0 commit comments

Comments
 (0)