-
[PyQt] ๊ตฌ๊ธ ๋ฒ์ญ๊ธฐ ํ๋ก๊ทธ๋จ ๋ง๋ค๊ธฐ & "'NoneType' object has no attribute 'group'" ์ด์ ํด๊ฒฐํ๊ธฐ
PyQt๋ก ๊ตฌ๊ธ ๋ฒ์ญ๊ธฐ ํ๋ก๊ทธ๋จ ๋ง๋ค๊ธฐ๋ค์ด๊ฐ๋ฉฐPyQt๋ฅผ ์ด์ฉํ์ฌ ๊ฐ๋จํ๊ฒ ํ๊ธ์ ๋ฌธ์ฅ์ ์์ด ๋ฌธ์ฅ์ผ๋ก ๋ฒ์ญํ๋ ํ๋ก๊ทธ๋จ์ ๋ง๋ค์ด๋ณด์.์ด๋, ๋ฌด๋ฃ๋ก ์ฌ์ฉํ ์ ์๋ ๊ตฌ๊ธ ๋ฒ์ญ๊ธฐ ํจํค์ง(@googletrans@)๋ฅผ ์ฌ์ฉํ๋๋ก ํ๋ค. ์ฝ๋import sysfrom PyQt5.QtWidgets import *from googletrans import Translatorclass MyApp(QWidget): def __init__(self): super().__init__() self.lbl1 = QLabel('ํ๊ตญ์ด:', self) self.lbl2 = QLabel('์์ด:', self) self.le = QLineEdit(self) self..
2023.05.15