100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
INF2611 Assignment Semesters 1 and 2 2021 R50,00   Add to cart

Exam (elaborations)

INF2611 Assignment Semesters 1 and 2 2021

 20 views  0 purchase

INF2611 Assignment Semesters 1 and 2 2021

Preview 2 out of 5  pages

  • June 14, 2021
  • 5
  • 2020/2021
  • Exam (elaborations)
  • Questions & answers
book image

Book Title:

Author(s):

  • Edition:
  • ISBN:
  • Edition:
All documents for this subject (25)
avatar-seller
tharagen
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller tharagen. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R50,00. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67447 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R50,00
  • (0)
  Buy now