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.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):
|
||||||
|
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
|
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(
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user