-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefaultSettings.py
58 lines (54 loc) · 1.34 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
53
54
55
56
57
58
# -*- coding: utf-8 -*-
#default config
from ConfigManager import *
class DefaultSettings:
def get():
config = ConfigManager()
config["general"]={
"language": "ja-JP",
"fileVersion": "101",
"locale": "ja_JP",
"autoHide": False,
"minimizeOnExit": True,
}
config["view"]={
"font": "bold 'MS ゴシック' 22 windows-932",
"colorMode":"normal"
}
config["speech"]={
"reader" : "AUTO"
}
config["mainView"]={
"sizeX": "800",
"sizeY": "600",
}
config["notification"] = {
"baloon": True,
"record": True,
"openBrowser": False,
"sound": False,
"soundFile": "notification.ogg",
}
config["twitcasting"] = {
"enable": False,
"saveComments": False,
"filetype": "mp4",
"login": False,
}
config["record"] = {
"dir": "output\\%source%",
"createSubDir": True,
"subDirName": "%user%",
"fileName": "%user%_%year%%month%%day%_%hour%%minute%%second%",
}
config["proxy"] = {
"useManualSetting": False,
"server": "",
"port": 8080
}
return config
initialValues={}
"""
この辞書には、ユーザによるキーの削除が許されるが、初回起動時に組み込んでおきたい設定のデフォルト値を設定する。
ここでの設定はユーザの環境に設定ファイルがなかった場合のみ適用され、初期値として保存される。
"""