def bindButton(self): """ hsj 绑定按钮 :return: """ # # 删除按钮 self.deleteProductButton.clicked.connect(self.deleteButtonEvent) # # 新建按钮 self.addProductButton.clicked.connect( lambda: self.addButtonEvent(AddProductWidget())) # # 查看产品 self.selectProductButton.clicked.connect( lambda: self.selectDetailButtonEvent(AddProductWidget())) # 修改按钮 self.alterProductButton.clicked.connect( lambda: self.updateButtonEvent(AddProductWidget())) # 上一页 self.previousButton.clicked.connect(self.preButtonEvent) # 下一页 self.nextButton.clicked.connect(self.nextButtonEvent) # 跳转按钮 self.jumpButton.clicked.connect(self.jumpButtonEvent) # 添加查询 self.searchButton.clicked.connect(self.searchButtonEvent) self.documentButton.clicked.connect(self.selectDocumentEvent) # self.selectComponentButton.clicked.connect(self.selectComponentButtonEvent) self.selectComponentButton.clicked.connect( self.selectComponentButtonEventTest)
def bindButton(self): """ hsj 绑定按钮 :return: """ # 把需要使用的窗体传进去 # 新建按钮 self.addBatchButton.clicked.connect(lambda :self.addButtonEvent(AddProductBatchWidget())) # 查看产品 self.selectProduct.clicked.connect(lambda :self.selectButtonEvent(AddProductWidget())) # 修改批次 self.alterVBatchButton.clicked.connect(lambda :self.updateButtonEvent(AddProductBatchWidget())) # 下面是无需改动的按钮 # 删除按钮 self.deleteBatchButton.clicked.connect(self.deleteButtonEvent) # 上一页 self.previousButton.clicked.connect(self.preButtonEvent) # 下一页 self.nextButton.clicked.connect(self.nextButtonEvent) # 跳转按钮 self.jumpButton.clicked.connect(self.jumpButtonEvent) # 添加查询 self.searchButton.clicked.connect(self.searchButtonEvent) # 查询文档 self.selectDocument.clicked.connect(self.selectDocumentEvent) # 查询批次 self.selectBatch.clicked.connect(lambda :self.selectDetailButtonEvent(AddProductBatchWidget()))
def addProductView(self): """产品信息添加的UI""" self.tt = AddProductWidget() self.setRightWidget1(self.tt)