-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefaultSettings.py
52 lines (48 loc) · 1.18 KB
/
DefaultSettings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-
#default config
from ConfigManager import *
class DefaultSettings:
def get():
config = ConfigManager()
config["general"]={
"language": "ja-JP",
"fileVersion": "100",
"locale": "ja-JP",
"update" : True,
"auto_reload" : False,
"log_level":"20",
"keep_filter":"False",
}
config["view"]={
"font": "bold 'MS ゴシック' 22 windows-932",
"colorMode":"normal",
"textwrapping":"off",
"enableMultiline":False,
}
config["speech"]={
"reader" : "AUTO"
}
config["mainView"]={
"sizeX": "1080",
"sizeY": "675",
}
config["proxy"]={
"usemanualsetting" : False,
"server" : "localhost",
"port" : 8080,
}
config["account"]={
"id" : "",
"password" : "",
"use_always" : "false"
}
config["filter_status"]={
"auto_question" : "False",
"baton" : "False",
}
return config
initialValues={}
"""
この辞書には、ユーザによるキーの削除が許されるが、初回起動時に組み込んでおきたい設定のデフォルト値を設定する。
ここでの設定はユーザの環境に設定ファイルがなかった場合のみ適用され、初期値として保存される。
"""