mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
7e5ee957d5
commit
162aaa07d1
@ -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):
|
||||
|
2465
LunaTranslator/LunaTranslator/cishu/mdict.py
Normal file
2465
LunaTranslator/LunaTranslator/cishu/mdict.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -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(
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user