100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

INF2611 Assignment 4 2025 - Due 16 September 2025

Rating
5,0
(1)
Sold
6
Pages
18
Grade
A+
Uploaded on
13-09-2025
Written in
2025/2026

INF2611 Assignment 4 2025 - Due 16 September 2025 100% solved answers.Stop starting from scratch.Download your copy today and get a head start.











Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
September 13, 2025
Number of pages
18
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

INF2611
Assignment 4
Unique No:
Due 16 September 2025

,INF2611 Assignment 4

Question 1 (40 marks)

Question:
Design a 4-page GUI of your own choice using Qt Designer. The first page should be a
login screen with username and password. The remaining three pages should feature a
custom user interface of your choice, incorporating widgets, a calendar, and a graphic
logo. Use file handling or MySQLdb. Paste the .py code of each GUI (GUI code 1–4)
and include screenshots.

Answer: Question 1

Below is the Python source code for the four GUIs.
👉 Important: In GUI 1 (login screen), replace InsertYourSurname and
InsertYourStudentNumber with your actual surname and student number before
running. Otherwise, the login will fail.

GUI code 1 – Login screen (gui1_login.py)

# GUI code 1 - gui1_login.py
from PyQt5.QtWidgets import (
QWidget, QLabel, QLineEdit, QPushButton, QVBoxLayout, QHBoxLayout,
QMessageBox
)
from PyQt5.QtGui import QFont, QPixmap
from PyQt5.QtCore import Qt


# Replace with your OWN surname and student number
EXPECTED_USERNAME = "InsertYourSurname"
EXPECTED_PASSWORD = "InsertYourStudentNumber"


class LoginPage(QWidget):

, def __init__(self, goto_dashboard_callback, logo_path="logo.png"):
super().__init__()
self.goto_dashboard = goto_dashboard_callback
self.logo_path = logo_path
self.init_ui()


def init_ui(self):
self.setWindowTitle("Login - Student System")
layout = QVBoxLayout()
layout.setAlignment(Qt.AlignCenter)


# Logo (optional)
try:
pix = QPixmap(self.logo_path)
if not pix.isNull():
logo = QLabel()
logo.setPixmap(pix.scaledToWidth(200, Qt.SmoothTransformation))
logo.setAlignment(Qt.AlignCenter)
layout.addWidget(logo)
except Exception:
pass


title = QLabel("Student Management System")
title.setFont(QFont("Arial", 16))
title.setAlignment(Qt.AlignCenter)
layout.addWidget(title)


# Username field
user_h = QHBoxLayout()
user_lbl = QLabel("Username:")
self.user_edit = QLineEdit()

Reviews from verified buyers

Showing all reviews
2 months ago

5,0

1 reviews

5
1
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
AcademicGeniusHub Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
82
Member since
4 months
Number of followers
0
Documents
247
Last sold
1 week ago
AcademicGenius

AcademicGenius provides high-quality, easy-to-understand study guides, notes, and assignment help to support student success. All materials are well-structured, accurate, and aligned with academic standards—perfect for exam prep, coursework, and revision.

4,0

13 reviews

5
7
4
2
3
2
2
1
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions