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
-
Sold
-
Pages
19
Grade
A+
Uploaded on
14-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 14, 2025
Number of pages
19
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

Create a four-page Graphical User Interface (GUI) using Qt Designer.

 Page 1 must serve as a login screen with fields for username and password.
 The other three pages should each implement a custom user interface of your
choice, and must include:
o the use of various widgets,
o a calendar component,
o and the display of a graphic logo.
 Integrate file handling or MySQLdb for data storage.
 Provide the .py source code for each GUI file (GUI code 1–4) and screenshots.

Answer to Question 1

Below is a working Python implementation of the four GUIs.


⚠️Note: For the first page (login), replace
InsertYourSurname and InsertYourStudentNumber with your own surname (username)
and student number (password). If this step is skipped, login validation will not
succeed.

GUI Code 1 – Login Screen (gui1_login.py)
# gui1_login.py
# GUI Page 1: Login screen


from PyQt5.QtWidgets import (
QWidget, QLabel, QLineEdit, QPushButton, QVBoxLayout, QHBoxLayout,
QMessageBox

, )
from PyQt5.QtGui import QFont, QPixmap
from PyQt5.QtCore import Qt


# Credentials (replace with your own)
EXPECTED_USERNAME = "InsertYourSurname"
EXPECTED_PASSWORD = "InsertYourStudentNumber"


class LoginPage(QWidget):
def __init__(self, on_success_callback, logo_path="logo.png"):
super().__init__()
self.on_success_callback = on_success_callback
self.logo_path = logo_path
self.build_ui()


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


# Logo area (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

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.
AcademicAnchor University of South Africa (Unisa)
View profile
Follow You need to be logged in order to follow users or courses
Sold
47
Member since
2 year
Number of followers
1
Documents
382
Last sold
2 months ago
Academic Anchor

Welcome to AcademicAnchor – Your Trusted Source for High-Quality Assignments, Exam Packs and Study Notes. At AcademicAnchor, we provide expertly written, exam-ready study guides, summaries, and notes designed to help students succeed. Whether you\'re preparing for finals, catching up on lectures, or aiming for top grades, our materials are crafted to save you time and boost your performance. ✔️ Clear & concise notes ✔️ Covers key concepts and exam tips ✔️ Perfect for last-minute revision ✔️ Trusted by hundreds of students Join thousands of learners who use AcademicAnchor to stay grounded in their studies and achieve academic success.

Read more Read less
3,6

11 reviews

5
5
4
1
3
3
2
0
1
2

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