Assignment 4
Due 16 September 2025
, INF2611 Assignment 4 2025 Due 16 September 2025
QUESTION ONE: 40 MARKS
Design a 4-page GUI of your own choice using Qt Designer. (10 marks for each GUI
functionality). Use the traditional file handling method unless you have the time and
skills to create a database, you can use a MySQLdb for file storage. Do not include too
many functionalities (buttons and edit boxes) on one GUI to avoid lengthy code.
The first page should be a login screen with text boxes for Username and Password,
along with Login and Cancel buttons. The remaining three pages should feature a
custom user interface of your choice, incorporating various widgets, a Calendar, and a
graphic logo. Make sure that the button used are working. Make use the system is
functional. Use your own surname as username and your student number as system
password. (-10 marks if the username and password are not your own surname and
student number, and -100 marks if they belong to another student)
N.B: Paste the .py code of each GUI on this section and name them GUI code 1-4.
Paste a screenshot of the entire computer screen.
py code 1
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QLabel,
QLineEdit, QPushButton, QMessageBox
import sys
class Login(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle("Login Screen")
layout = QVBoxLayout()
# Username
self.username = QLineEdit()