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.
28 lines
832 B
28 lines
832 B
from PySide6.QtWidgets import QDialog, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QPushButton
|
|
|
|
from core.usermanager import UserManager
|
|
|
|
|
|
class RemoveBookInformation(QDialog):
|
|
def __init__(self, user_manager: UserManager):
|
|
super().__init__()
|
|
self.user_manager = user_manager
|
|
|
|
self.layout = QVBoxLayout()
|
|
|
|
self.setWindowTitle("移除图书信息")
|
|
|
|
self.isbn = QHBoxLayout()
|
|
self.isbn.addWidget(QLabel("ISBN"))
|
|
self.isbn_line_edit = QLineEdit()
|
|
self.isbn.addWidget(self.isbn_line_edit)
|
|
self.layout.addLayout(self.isbn)
|
|
|
|
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 |