feat(category): 添加删除按钮(未添加逻辑)
This commit is contained in:
parent
71a18fc398
commit
0bdc637804
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue