Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this assignment you will use the Tkinter Pythan GUI toolkit to develop a simulated user interface to the Hame Heating System classical Object Oriented

In this assignment you will use the Tkinter Pythan GUI toolkit to develop a simulated user interface to the Hame
Heating System classical Object Oriented Design application discussed in class. Based an the HeutSwitch,
abstract ToggleSwitch, and BooleanView classes develaped in class, develap a code in a Jupyter Natebook to
render a GUI that resembles Figure 1 when the GUI is launched.
Figure 1. Initial state of the home heating system user interface. Temperature is initially set to 75 and no buttons
are highlighted.
In addition to the Button and Label widgets, the GUI makes use of Frame and Scale widgets. Documentation for
the Tkinter library is available here O. Read how to use the Frome and Scale widgets. Consider using grid
placement with the Frame widget. When the user slides the desired temperature to BO and above, the heat on
button becames highlighted and the status messge becomes furnace running, as shawn in Figure 2.
Figure 2. State of the home heating system user interface when the slider is advanced to a0 or higher.
When the slider is lawered to 65 or below, the heat off button becames highlighted and the status mesegge
becomes furnace stopped, as shawn in Figure 3. Nate the heat off and heat on buttans should model the view of a
ToggleSwitch where only one of the two buttons can be highlighted [i.e., enabled) at one time.
Figure 3. State of the home heating system user interface when the slider is lowered to 65 or belaw.
When the slider is advanced beyond 25, the fault button and heat off button becomes becomes highlighted and
the status messige becomes furnace faulted, as shown in Figure 4. In the faulted state, the slider, heat off button,
and heat on button has no effect until one presses the fault reset button to clear the fault.
Figure 4. State of the home heating system user interface when the slider is advanced beyand 85.
When the foult reset button is clicked, the temperature is reset to 75, the heat off button becomes highlighted,
and the status message becomes furnace stopped, as shown in Figure 5.
Figure 5. State of the home heating system user interface after the fault reset button is clicked.
Use Object Oriented design principles to design your GUI. Make sure your GUI raises no exceptions and test all
possible button presses and slider positions to verify no exceptions are raised.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago