Revert "由于PySimpleGUI作者故意移除免费的旧版本,改用PySimpleGUI-4-foss"

This commit is contained in:
天涯古巷
2025-04-25 11:03:16 +08:00
committed by GitHub
parent 991294c00f
commit 53baf28326
235 changed files with 59573 additions and 801 deletions

5
gui.py
View File

@@ -21,6 +21,9 @@ from backend.tools.common_tools import is_image_file
class SubtitleRemoverGUI:
def __init__(self):
# 初次运行检查运行环境是否正常
from paddle import utils
utils.run_check()
self.font = 'Arial 10'
self.theme = 'LightBrown12'
sg.theme(self.theme)
@@ -70,7 +73,7 @@ class SubtitleRemoverGUI:
# 创建布局
self._create_layout()
# 创建窗口
self.window = sg.Window(title=f'Video Subtitle Remover v{backend.main.config.VERSION}' , layout=self.layout,
self.window = sg.Window(title='Video Subtitle Remover', layout=self.layout,
icon=self.icon)
while True:
# 循环读取事件