python+pyqt5+mysql design library management system (4) - administrator library management interface

I have designed the registration and login interface before, and I am waiting to enter the book management interface. Today I am here to design the book management interface. First use pyqt5 to design the detail_mg.ui document, and then use PyUIC to convert it into a detail_mg.py document, and you will get The code of the designed interface document. Then implement the corresponding functions on the interface one by one.

1. Menu Bar Options

Bind the function corresponding to the option to an event

self.action1.triggered.connect(self.regist_user)
self.action2.triggered.connect(self.login_user)
self.action3.triggered.connect(self.login_user)
self.action4.triggered.connect(self.quit_sys)

Menu Bar - Login Options / Logout Options

def login_user(self):
    self.hide()
    # Open the login interface
    self.log = loginer.Ui_MainWindow()
    self.log.show()
menu bar - registration option
def regist_user(self):
 

Guess you like

Origin blog.csdn.net/a316495442/article/details/128353953