From a3fc2517a78ac61ca3fb8ed46d97903bac2fafe3 Mon Sep 17 00:00:00 2001 From: congsh Date: Thu, 12 Feb 2026 11:11:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4main=5Fwindow.py?= =?UTF-8?q?=E4=B8=AD=E9=94=99=E8=AF=AF=E7=9A=84QtGui.QMessageBox=E5=AF=BC?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QMessageBox属于QtWidgets模块,不属于QtGui模块 --- src/gui/main_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/main_window.py b/src/gui/main_window.py index 1bc8667..403ff2d 100644 --- a/src/gui/main_window.py +++ b/src/gui/main_window.py @@ -20,7 +20,7 @@ from PyQt6.QtWidgets import ( QMessageBox ) from PyQt6.QtCore import Qt, QSize, pyqtSignal, QThread, QTimer -from PyQt6.QtGui import QIcon, QShortcut, QKeySequence, QMessageBox +from PyQt6.QtGui import QIcon, QShortcut, QKeySequence from src.core.ocr import ensure_paddleocr from src.gui.styles import ThemeStyles