Skip to content

Commit 79f00eb

Browse files
committed
Update default setting
1 parent 1b90ab9 commit 79f00eb

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
python -m nuitka --standalone --include-data-file=icon.png=./icon.png --include-data-file=pdf.png=./pdf.png --include-data-file=Doc2X_zh.qm=./Doc2X_zh.qm --plugin-enable=pyqt6 Doc2X.py
66
```
77
```python
8-
python -m nuitka --standalone --include-data-file=icon.png=./icon.png --include-data-file=pdf.png=./pdf.png --plugin-enable=pyqt6 --include-data-file=Doc2X_zh.qm=./Doc2X_zh.qm --onefile --mingw64 Doc2X.py
8+
python -m nuitka --standalone --include-data-file=icon.png=./icon.png --include-data-file=pdf.png=./pdf.png --plugin-enable=pyqt6 --include-data-file=Doc2X_zh.qm=./Doc2X_zh.qm --onefile --mingw64 --windows-console-mode=disable --windows-icon-from-ico=./icon.png Doc2X.py
99
```

Tools/Config.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
import logging
33
import locale
44

5-
from Tools.DEFAULT import DEFAULT_General_Congig
5+
from Tools.DEFAULT import DEFAULT_General_Congig,DEFAULT_General_Congig_win
66

77

88
def get_default_config(filename):
99
"""
1010
Get the default config
1111
"""
1212
if "General" in filename:
13-
return DEFAULT_General_Congig
13+
if os.name == "nt":
14+
return DEFAULT_General_Congig_win
15+
else:
16+
return DEFAULT_General_Congig
1417
return ""
1518

1619

Tools/DEFAULT.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
DEFAULT_General_Congig = """
22
font = "DejaVu Sans"
33
font_size = 14
4-
lang=en_US
4+
lang=zh_CN
55
Listen=False
66
"""
7+
DEFAULT_General_Congig_win = """
8+
font = "Arial"
9+
font_size = 14
10+
lang=zh_CN
11+
Listen=False
12+
"""

0 commit comments

Comments
 (0)