rebase codebase, delete trunk, move threads to backend
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
|
||||
from PyQt6 import QtWidgets, QtCore, QtGui
|
||||
from PyQt6.QtCore import pyqtSignal
|
||||
from .widget_sources.Ui_admin_create_user import Ui_Dialog
|
||||
from src.backend import AdminCommands, Database
|
||||
from src.backend import AdminCommands, Database
|
||||
|
||||
|
||||
class UserCreate(QtWidgets.QDialog, Ui_Dialog):
|
||||
admin_action_changed = pyqtSignal()
|
||||
|
||||
def __init__(self):
|
||||
super(UserCreate, self).__init__()
|
||||
self.setupUi(self)
|
||||
@@ -18,7 +20,7 @@ class UserCreate(QtWidgets.QDialog, Ui_Dialog):
|
||||
self.user_frame_userrole.setCurrentText("")
|
||||
|
||||
# Variables
|
||||
|
||||
|
||||
def add_user(self):
|
||||
username = self.user_create_frame_username.text()
|
||||
password = self.user_create_frame_password.text()
|
||||
@@ -38,9 +40,10 @@ class UserCreate(QtWidgets.QDialog, Ui_Dialog):
|
||||
self.user_create_frame_username.clear()
|
||||
self.user_create_frame_password.clear()
|
||||
self.admin_action_changed.emit()
|
||||
|
||||
|
||||
|
||||
def launch():
|
||||
app = QtWidgets.QApplication([])
|
||||
window = UserCreate()
|
||||
window.show()
|
||||
app.exec()
|
||||
app.exec()
|
||||
|
||||
Reference in New Issue
Block a user