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.
29 lines
836 B
29 lines
836 B
from PySide6.QtWidgets import QDialog, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QPushButton
|
|
|
|
from core.usermanager import UserManager
|
|
|
|
|
|
class RemoveBook(QDialog):
|
|
def __init__(self, user_manager: UserManager):
|
|
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.remove_button = QPushButton("移除图书")
|
|
self.remove_button.clicked.connect(self.remove)
|
|
self.layout.addWidget(self.remove_button)
|
|
|
|
self.setLayout(self.layout)
|
|
|
|
def remove(self):
|
|
pass
|