2025 - DUE 16 September 2025; 100% correct
solutions and explanations.
Question 1
Step 1: Requirements Overview
1. GUI 1 – Login Page
o Text boxes: Username, Password
o Buttons: Login, Cancel
o Username = YourSurname, Password = YourStudentNumber
o Login checks credentials and opens GUI 2 on success
o Cancel exits application
2. GUI 2 – Custom Page 1
o Include widgets: Label, Buttons, TextEdit
o Logo display (can use QLabel with setPixmap)
o A button to navigate to GUI 3
3. GUI 3 – Custom Page 2
o Include a calendar widget
o Additional widgets (e.g., ComboBox, PushButton)
o Navigate to GUI 4
4. GUI 4 – Custom Page 3
o Include text input, radio buttons, checkboxes
o Display system info or sample output
o A “Logout” button that returns to GUI 1
5. File Handling
o Optional: save user inputs to .txt files
6. PyQt Version
o Using PyQt5 (pip install PyQt5)
GUI Code 1 – Login Screen (gui1.py)
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QLineEdit, QPushButton,
QMessageBox
from PyQt5.QtGui import QFont
from gui2 import GUI2 # Import next page
class Login(QWidget):
def __init__(self):
super().__init__()