Answered step by step
Verified Expert Solution
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 when the GUI is launched.
Figure Initial state of the home heating system user interface. Temperature is initially set to 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 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 and above, the heat on
button becames highlighted and the status messge becomes furnace running, as shawn in Figure
Figure State of the home heating system user interface when the slider is advanced to a or higher.
When the slider is lawered to or below, the heat off button becames highlighted and the status mesegge
becomes furnace stopped, as shawn in Figure 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 ie enabled at one time.
Figure State of the home heating system user interface when the slider is lowered to or belaw.
When the slider is advanced beyond the fault button and heat off button becomes becomes highlighted and
the status messige becomes furnace faulted, as shown in Figure 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 State of the home heating system user interface when the slider is advanced beyand
When the foult reset button is clicked, the temperature is reset to the heat off button becomes highlighted,
and the status message becomes furnace stopped, as shown in Figure
Figure 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started