def updateBookFunction(self, BID: str): book_info = database.get_book_info(BID) if book_info is None: return self.sum = book_info['SUM'] self.updateBookDialog = book_information.BookInfo(book_info) self.updateBookDialog.after_close.connect(self.updateBook) self.updateBookDialog.show()
def addNewBookFunction(self): self.newBookDialog = book_information.BookInfo() self.newBookDialog.show() self.newBookDialog.after_close.connect(self.addNewBook)