mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
rm
This commit is contained in:
parent
d996a8a467
commit
16f296b841
@ -162,16 +162,10 @@ def createbtnexport(self):
|
|||||||
return bt
|
return bt
|
||||||
|
|
||||||
|
|
||||||
def createfuzspin(self):
|
|
||||||
|
|
||||||
_fuzainum = getspinbox(1, 99999, globalconfig, "loadbalance_oncenum", step=1)
|
|
||||||
_fuzainum.setEnabled(globalconfig["loadbalance"])
|
|
||||||
self._fuzainum = _fuzainum
|
|
||||||
return _fuzainum
|
|
||||||
|
|
||||||
|
|
||||||
def setTabTwo_lazy(self, basel):
|
def setTabTwo_lazy(self, basel):
|
||||||
|
# 均衡负载 loadbalance
|
||||||
|
# 单次负载个数 loadbalance_oncenum
|
||||||
|
# 过时的,不再在ui中展示
|
||||||
grids = [
|
grids = [
|
||||||
[
|
[
|
||||||
"最短翻译字数",
|
"最短翻译字数",
|
||||||
@ -180,24 +174,18 @@ def setTabTwo_lazy(self, basel):
|
|||||||
"最长翻译字数",
|
"最长翻译字数",
|
||||||
D_getspinbox(0, 9999, globalconfig, "maxlength"),
|
D_getspinbox(0, 9999, globalconfig, "maxlength"),
|
||||||
"",
|
"",
|
||||||
"翻译请求间隔(s)",
|
"",
|
||||||
D_getspinbox(
|
"",
|
||||||
0, 9999, globalconfig, "requestinterval", step=0.1, double=True
|
"",
|
||||||
),
|
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"使用翻译缓存",
|
"使用翻译缓存",
|
||||||
D_getsimpleswitch(globalconfig, "uselongtermcache"),
|
D_getsimpleswitch(globalconfig, "uselongtermcache"),
|
||||||
"",
|
"",
|
||||||
"均衡负载",
|
"翻译请求间隔(s)",
|
||||||
D_getsimpleswitch(
|
D_getspinbox(
|
||||||
globalconfig,
|
0, 9999, globalconfig, "requestinterval", step=0.1, double=True
|
||||||
"loadbalance",
|
|
||||||
callback=lambda x: self._fuzainum.setEnabled(x),
|
|
||||||
),
|
),
|
||||||
"",
|
|
||||||
"单次负载个数",
|
|
||||||
functools.partial(createfuzspin, self),
|
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
online_reg_grid = [[("若有多个api key,用|将每个key连接后填入,即可轮流使用", -1)]]
|
online_reg_grid = [[("若有多个api key,用|将每个key连接后填入,即可轮流使用", -1)]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user