17 lines
408 B
Python
17 lines
408 B
Python
from PyQt5.QtWidgets import QApplication
|
|
from gui import TranslationApp
|
|
from logger_module import setup_logger
|
|
|
|
def main():
|
|
# 로깅 설정
|
|
logger = setup_logger('default_logger', f'appTranslator.log')
|
|
|
|
# PyQt5 앱 실행
|
|
app = QApplication([])
|
|
window = TranslationApp(logger) # 로거를 TranslationApp에 전달
|
|
window.show()
|
|
app.exec_()
|
|
|
|
if __name__ == '__main__':
|
|
main()
|