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
817 B
28 lines
817 B
from PySide6.QtWidgets import QDialog, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QPushButton
|
|
|
|
from core.usermanager import UserManager
|
|
|
|
|
|
class RemoveUser(QDialog):
|
|
def __init__(self, user_manager: UserManager):
|
|
super().__init__()
|
|
self.user_manager = user_manager
|
|
|
|
self.layout = QVBoxLayout()
|
|
|
|
self.setWindowTitle("移除用户")
|
|
|
|
self.user = QHBoxLayout()
|
|
self.user.addWidget(QLabel("账户"))
|
|
self.user_line_edit = QLineEdit()
|
|
self.user.addWidget(self.user_line_edit)
|
|
self.layout.addLayout(self.user)
|
|
|
|
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 |