feat(category): 添加删除按钮(未添加逻辑)

This commit is contained in:
iridiumR 2023-05-23 20:04:26 +08:00
parent 71a18fc398
commit 0bdc637804
No known key found for this signature in database
GPG key ID: 49735733EB1A32C8

View file

@ -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()