You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
775 B

from PySide6.QtWidgets import QDialog, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QPushButton
class BorrowBook(QDialog):
def __init__(self, user_manager):
super().__init__()
self.user_manager = user_manager
self.layout = QVBoxLayout()
self.setWindowTitle("借阅图书")
self.book_id = QHBoxLayout()
self.book_id.addWidget(QLabel("BookID"))
self.book_id_line_edit = QLineEdit()
self.book_id.addWidget(self.book_id_line_edit)
self.layout.addLayout(self.book_id)
self.borrow_button = QPushButton("借阅")
self.borrow_button.clicked.connect(self.borrow)
self.layout.addWidget(self.borrow_button)
self.setLayout(self.layout)
def borrow(self):
pass