100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

INF2611 Assignment Semesters 1 and 2 2021

Beoordeling
-
Verkocht
-
Pagina's
5
Cijfer
A+
Geüpload op
14-06-2021
Geschreven in
2020/2021

INF2611 Assignment Semesters 1 and 2 2021

Instelling
Vak









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Gekoppeld boek

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
14 juni 2021
Aantal pagina's
5
Geschreven in
2020/2021
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

INF2611
2021




Assignment
Assignment 2
number:
Assignment unique
863984
code:
Student number:
Last name &
Initials

Theme Advanced Widgets, Menus, Toolbars



Statement of Compliance
This assignment includes:
• Part A – program source code.

Statement of Originality
This is to certify that to the best of my knowledge; the content of this assignment is my own work.

I certify that the intellectual content of this assignment is the product of my own work and that all
the assistance received in preparing this assignment and sources have been acknowledged.




INF2611 Assignment 2 Template v1.0

, INF2611 Assignment 2




Part A – Single Window Application Source code
You are required to develop a single screen application for the following scenario:



Often it is necessary to calculate how much time (days, hours etc.) will pass before a certain event will take
place. Your app will assist member of the public in calculating how long they will have to wait for their
COVID vaccination. The app must be a simple single screen application that display the current date and
time, inputs the future date, and then displays how much time until the COVID vaccination will take place.


Make use of the following widgets:

• QCalenderWidget (use 2 calendars, one for current date and one for future date)
• QPushButton
• Any display widget for the message showing how much time still to pass


Source code:

Covid.py:

from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(380, 645)
self.mainwidget = QtWidgets.QWidget(MainWindow)
self.mainwidget.setObjectName("Mainwidget")
self.calToday = QtWidgets.QCalendarWidget(self.mainwidget)
self.calToday.setGeometry(QtCore.QRect(35, 75, 318, 188))
self.calToday.setGridVisible(False)
self.calToday.setDateEditEnabled(False)
self.calToday.setObjectName("calToday")
self.calVaccination = QtWidgets.QCalendarWidget(self.mainwidget)
self.calVaccination.setGeometry(QtCore.QRect(35, 335, 318, 188))
self.calVaccination.setObjectName("calVaccination")
self.buttonCalculate = QtWidgets.QPushButton(self.mainwidget)
self.buttonCalculate.setGeometry(QtCore.QRect(35, 555, 80, 28))


2
€2,65
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
tharagen
1,0
(1)

Maak kennis met de verkoper

Seller avatar
tharagen University of South Africa (Unisa)
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
37
Lid sinds
6 jaar
Aantal volgers
33
Documenten
5
Laatst verkocht
1 jaar geleden

1,0

1 beoordelingen

5
0
4
0
3
0
2
0
1
1

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen