This commit is contained in:
Prox_Win10-B 2024-10-29 14:52:13 +09:00
commit db9eb058ac
5 changed files with 3 additions and 9 deletions

View File

@ -1,4 +1,3 @@
# from playwright.sync_api import sync_playwright
from playwright.async_api import async_playwright, TimeoutError
import re
import pyautogui

2
gui.py
View File

@ -16,7 +16,7 @@ import logging
import asyncio, sys
import os, shutil, time
class TranslationApp(QWidget):
class AutoPercentyGUI(QWidget):
def __init__(self, logger=None, app=None):
super().__init__()
self.initUI()

View File

@ -1,11 +1,9 @@
import ctypes
from PySide6.QtWidgets import QApplication
from gui import TranslationApp # 기존 TranslationApp UI 사용
from gui import AutoPercentyGUI
from logger_module import setup_logger
import asyncio
import os
from whale_translator import WhaleTranslator
# 절전모드를 방지하는 설정 값
ES_CONTINUOUS = 0x80000000
@ -51,7 +49,7 @@ async def main():
except Exception as e:
logger.error(f"DPI 인식 설정 실패: {e}")
window = TranslationApp(logger, app)
window = AutoPercentyGUI(logger, app)
window.show()
# QApplication.exec_()을 사용하여 Qt 이벤트 루프 시작

View File

@ -1,5 +1,4 @@
from collections import Counter
import pyautogui
from datetime import datetime
import numpy as np
import asyncio, time, math

View File

@ -1,8 +1,6 @@
from collections import Counter
import pyautogui
from datetime import datetime
import numpy as np
import asyncio
import math , re, time
from playwright.async_api import TimeoutError