Merge branch 'pyside6' of https://git.cckb9998.synology.me/ckh08045/autoTrans into pyside6
This commit is contained in:
commit
6162a3bf79
|
|
@ -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
2
gui.py
|
|
@ -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()
|
||||
|
|
|
|||
6
main.py
6
main.py
|
|
@ -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 이벤트 루프 시작
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
from collections import Counter
|
||||
import pyautogui
|
||||
from datetime import datetime
|
||||
import numpy as np
|
||||
import asyncio, time, math
|
||||
|
|
@ -643,7 +642,7 @@ class OptionHandler:
|
|||
if checkbox_element:
|
||||
# 필터링된 옵션에 포함되고, 선택 가능한 수량 내라면 선택
|
||||
if name in filtered_option_names and (max_option_count == 0 or selected_count < max_option_count):
|
||||
await checkbox_element.click()
|
||||
# await checkbox_element.click()
|
||||
self.logger.debug(f"옵션 '{name}' 체크함")
|
||||
self.option_info['checked_states'][name] = True
|
||||
selected_count += 1
|
||||
|
|
|
|||
2
price.py
2
price.py
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 99 KiB |
Loading…
Reference in New Issue