가격 정렬 await 수정

워터마크 추가
This commit is contained in:
R5600U_PC 2024-10-23 13:50:27 +09:00
parent b93ff6783d
commit 0d51b75f03
4 changed files with 9 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import base64
import pyperclip
import win32clipboard
from io import BytesIO
from PIL import Image, ImageGrab
from PIL import Image, ImageGrab, ImageFont, ImageDraw
import requests
import numpy as np
import cv2
@ -14,12 +14,18 @@ import asyncio
import pyperclip # 클립보드 데이터를 확인하기 위한 라이브러리
class ClipboardImageManager:
def __init__(self, app, logger, browser_controller, debug=False):
def __init__(self, app, logger, browser_controller, watermark_font_size=24, debug=False):
self.app = app
self.logger = logger
self.browser_controller = browser_controller # BrowserController 인스턴스를 전달받음
self.debug = debug # 디버그 플래그를 클래스 변수로 사용
# 프로그램이 위치한 경로 기준으로 폰트 경로 설정
self.font_path = os.path.join(os.path.dirname(__file__), 'src', 'font', 'HakgyoansimDunggeunmisoTTFB.ttf')
# 폰트 로드
self.font = ImageFont.truetype(self.font_path, watermark_font_size)
# self.debug = True
def get_clipboard_data(self):

View File

@ -93,7 +93,7 @@ class PriceHandler:
self.logger.debug("옵션 가격 정보를 수집하기 위해 옵션가격정렬을 클릭 합니다.")
self.ordering_by_option_button_click()
await self.ordering_by_option_button_click()
is_single = self.optionHandler.option_info['is_single_option']

Binary file not shown.

BIN
src/font/gamtanload.ttf Normal file

Binary file not shown.