From 0bdc637804869b3fc63d5cde0d79424180a28ed8 Mon Sep 17 00:00:00 2001 From: iridiumR Date: Tue, 23 May 2023 20:04:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(category):=20=E6=B7=BB=E5=8A=A0=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=8C=89=E9=92=AE(=E6=9C=AA=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/budget/_category.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/budget/_category.py b/src/budget/_category.py index 61f24ef..a7bce9b 100644 --- a/src/budget/_category.py +++ b/src/budget/_category.py @@ -29,6 +29,10 @@ class CategoryTab(TabPage): categoryWidget = QWidget() self.setLayout(categoryLayout) + + def onCategoryDeleteClicked(self): + pass + def onCategoryModifyClicked(self): # 创建添加数据对话框 addDialog = QDialog(self) @@ -68,12 +72,15 @@ class CategoryTab(TabPage): line3.setText(data[0][2]) button1 = QPushButton("Confirm") + button3 = QPushButton("Delete") button2 = QPushButton("Abort") buttonLayout = QHBoxLayout() buttonLayout.addWidget(button1) + buttonLayout.addWidget(button3) buttonLayout.addWidget(button2) button1.clicked.connect(addDialog.accept) + button3.clicked.connect(self.onCategoryDeleteClicked) button2.clicked.connect(addDialog.reject) layout = QFormLayout()