From d79902024d6b3c9d3da9f43c045a560077c9618c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Tue, 23 Apr 2024 12:40:05 +0800 Subject: [PATCH] Update settingpage7.py --- LunaTranslator/LunaTranslator/gui/settingpage7.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/settingpage7.py b/LunaTranslator/LunaTranslator/gui/settingpage7.py index c7731f38..7e20edb8 100644 --- a/LunaTranslator/LunaTranslator/gui/settingpage7.py +++ b/LunaTranslator/LunaTranslator/gui/settingpage7.py @@ -27,7 +27,7 @@ from myutils.config import ( _TRL, ) import functools, gobject -from gui.usefulwidget import getcolorbutton, getsimpleswitch +from gui.usefulwidget import getcolorbutton, getsimpleswitch, getQMessageBox from gui.codeacceptdialog import codeacceptdialog from gui.inputdialog import ( getsomepath1, @@ -410,7 +410,16 @@ class noundictconfigdialog(QDialog): for row in range(rows): model.item(row, 0).setText("0") - button5.clicked.connect(clicked5) + button5.clicked.connect( + lambda: getQMessageBox( + self, + "警告", + "!!!", + True, + True, + lambda: clicked5(), + ) + ) search = QHBoxLayout() searchcontent = QLineEdit()