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.config import globalconfig
from myutils.wrapper import threader from myutils.wrapper import threader
from traceback import print_exc
class cishubase: class cishubase:
def init(self): def init(self):
@ -28,6 +28,7 @@ class cishubase:
try: try:
res = self.search(sentence) res = self.search(sentence)
except: except:
print_exc()
self.needinit = True self.needinit = True
if res and len(res): 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 continue
if "args" in globalconfig["hirasetting"][name]: if "args" in globalconfig["hirasetting"][name]:
items = autoinitdialog_items(globalconfig["hirasetting"][name]) items = autoinitdialog_items(globalconfig["hirasetting"][name])
items[-1]["callback"] = gobject.baseobject.starthira
_3 = getcolorbutton( _3 = getcolorbutton(
globalconfig, globalconfig,
"", "",
@ -129,7 +130,9 @@ def setTabcishu_l(self):
continue continue
items = autoinitdialog_items(globalconfig["cishu"][cishu]) items = autoinitdialog_items(globalconfig["cishu"][cishu])
items[-1]["callback"] = functools.partial(
gobject.baseobject.startxiaoxueguan, cishu
)
line += [ line += [
(globalconfig["cishu"][cishu]["name"], 6), (globalconfig["cishu"][cishu]["name"], 6),
getsimpleswitch( getsimpleswitch(

View File

@ -909,6 +909,38 @@
"step": 1 "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, "darklight": 0,