From 9060846b243d08df5804147195148bc3757acacc 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: Mon, 15 Apr 2024 12:24:55 +0800 Subject: [PATCH] issues/657 --- LunaTranslator/LunaTranslator/gui/settin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LunaTranslator/LunaTranslator/gui/settin.py b/LunaTranslator/LunaTranslator/gui/settin.py index 60b30dcc..c979a058 100644 --- a/LunaTranslator/LunaTranslator/gui/settin.py +++ b/LunaTranslator/LunaTranslator/gui/settin.py @@ -173,6 +173,9 @@ class Settin(closeashidewindow): class TabWidget(QWidget): currentChanged = pyqtSignal(int) + def setCurrentIndex(self, idx): + self.list_widget.setCurrentRow(idx) + def __init__(self, parent=None): super(TabWidget, self).__init__(parent) layout = QHBoxLayout()