This commit is contained in:
恍兮惚兮 2024-05-18 14:16:58 +08:00
parent 7e5ee957d5
commit 162aaa07d1
4 changed files with 2503 additions and 2 deletions

View File

@ -1,6 +1,6 @@
from myutils.config import globalconfig
from myutils.wrapper import threader
from traceback import print_exc
class cishubase:
def init(self):
@ -28,6 +28,7 @@ class cishubase:
try:
res = self.search(sentence)
except:
print_exc()
self.needinit = True
if res and len(res):

File diff suppressed because it is too large Load Diff

View File

@ -27,6 +27,7 @@ def gethiragrid(self):
continue
if "args" in globalconfig["hirasetting"][name]:
items = autoinitdialog_items(globalconfig["hirasetting"][name])
items[-1]["callback"] = gobject.baseobject.starthira
_3 = getcolorbutton(
globalconfig,
"",
@ -129,7 +130,9 @@ def setTabcishu_l(self):
continue
items = autoinitdialog_items(globalconfig["cishu"][cishu])
items[-1]["callback"] = functools.partial(
gobject.baseobject.startxiaoxueguan, cishu
)
line += [
(globalconfig["cishu"][cishu]["name"], 6),
getsimpleswitch(

View File

@ -909,6 +909,38 @@
"step": 1
}
}
},
"mdict": {
"use": false,
"name": "mdict",
"args": {
"path": "",
"ambiguity": 0,
"priority": 100
},
"argstype": {
"path": {
"type": "file",
"name": "路径",
"dir": false,
"multi": true,
"filter": "*.mdx|*.mdd"
},
"ambiguity": {
"type": "intspin",
"name": "ambiguity",
"min": 0,
"max": 3,
"step": 1
},
"priority": {
"type": "intspin",
"name": "优先级",
"min": 0,
"max": 10000,
"step": 1
}
}
}
},
"darklight": 0,