Skip to content

Commit

Permalink
小优化
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroi-sora committed Apr 25, 2023
1 parent d48e8cf commit 99d7bba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ocr/api_ppocr_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from sys import platform as sysPlatform # popen静默模式
from json import loads as jsonLoads, dumps as jsonDumps

InitTimeout = 5 # 初始化超时时间,秒
InitTimeout = 15 # 初始化超时时间,秒


class OcrAPI:
Expand Down
2 changes: 1 addition & 1 deletion ui/win_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def changeColor(configName, title=None):
self.balloon.bind(
wid, f'截图前隐藏主窗口\n会延迟{Config.get("screenshotHideWindowWaitTime")}毫秒以等待窗口动画')
wid = ttk.Checkbutton(fr2, variable=Config.getTK('isShowImage'),
text='截图展示窗口')
text='截图预览窗口')
wid.grid(column=2, row=0)
self.balloon.bind(
wid, f'不勾选:截图后立刻OCR识图\n勾选:截图后展示图片,可稍后识别或保存图片')
Expand Down
1 change: 0 additions & 1 deletion ui/win_show_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ def __onClickUnlock(self, e=None): # 单击解锁
def __onMouseWheel(self, e=None): # 滚轮
if self.isLock:
return
print(e.state)
if e.state == 0: # 什么都不按,缩放
step = 30
s = step if e.delta > 0 else -step
Expand Down

0 comments on commit 99d7bba

Please sign in to comment.