![]() ![]() Is the above structure can be improved? Personally, i don't really think it's a good idea to put everything in a single class like this.#this is the code to check if username is admin or userīoth ShowAdminPage and ShowUserPage methods are actually just creating 2 different Central Widgets and setting them. #this is the code to create user page GUI ![]() #this is the code to create admin page GUI #this is the code to create login page GUIī(self.Process_login) # Submit button for username/password For both administrator and user interfaces, there will be a toolbar with several tool buttons which will create a new dialog window.Ĭurrently the program structure i have is a single class like this: class MainWindow(QtGui.QMainWindow):.If the user name is in normal user list, the user will be presented with other relevant page. ![]() That is, if user name is in my administrator list, the user will be presented with administration page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |