增加ini 人脸超时限制

This commit is contained in:
冯佳
2025-09-12 11:32:19 +08:00
parent 0557ba7f1c
commit a3bb7f0701
12 changed files with 248 additions and 167 deletions

View File

@ -68,7 +68,7 @@ def save_user(user_id: int, user_name: str) -> bool:
return True
class UserManageDialog(QDialog):
def __init__(self, parent, send_func):
def __init__(self, parent=None, send_func=None):
super().__init__(parent)
self.send_func = send_func
uic.loadUi(users_ui_file_path, self)
@ -91,7 +91,7 @@ class UserManageDialog(QDialog):
def delete_selected(self):
row = self.table.currentRow()
if row < 0:
QMessageBox.warning(self, "提示", "请选择要删除的用户")
QMessageBox.warning(self, "提示", "删除选择用户")
return
uid = self.table.item(row, 0).text()
uname = self.table.item(row, 1).text()