Menu

(Solved) : Write Gui Based Program Allows User Convert Temperature Values Degrees Fahrenheit Degrees Q44060563 . . .

Write a GUI-based program that allows the user to converttemperature values between degrees Fahrenheit and degrees Celsius.The interface should have labeled entry fields for these twovalues. These components should be arranged in a grid where thelabels occupy the first row and the corresponding fields occupy thesecond row. At start-up, the Fahrenheit field should contain 32.0,and the Celsius field should contain 0.0. The third row in thewindow contains two command buttons, labeled>>>> and<<<<. When the user presses the firstbutton, the program should use the data in the Celsius field tocompute the Fahrenheit value, which should then be output to theFahrenheit field. The second button should perform the inversefunction. (PYTHON CODE please!) thank you 🙂

Programming Exercise 8.3 0 x nstructions breezypythongui.py temperatureconvert... +. Desktop </> Write a GUl-based program thbreezypythongui.py temperatureconvert... + ILLUS LI ates the use or numer td metus. 6 7 from breezypythongui import EasyFrameTemperature Converter Celsius Fahrenheit 0.0 32.0 <<<<

Programming Exercise 8.3 0 x nstructions breezypythongui.py temperatureconvert… +. Desktop </> Write a GUl-based program that allows the user to convert temperature values between degrees Fahrenheit and degrees Celsius. The interface should have labeled entry fields for these two values. These components should be arranged in a grid where the labels occupy the first row and the corresponding fields occupy the second row. At start-up, the Fahrenheit field should contain 32.0, and the Celsius field should contain 0.0. The third row in the window contains two command buttons, labeled >>>> and <<<<. When the user presses the first button, the program should use the data in the Celsius field to compute the Fahrenheit value, which should then be output to the Fahrenheit field. The second button should perform the inverse function. 24 import sys 25 version Number = sys.version_info.major 26 if version Number == 3: import tkinter import tkinter.simpledialog Tkinter = tkinter tkSimpleDialog = tkinter.simpledialog else: import Tkinter 33 import tkSimpleDialog 35 N = Tkinter.N 36 S = Tkinter.s 37 E = Tkinter. E 38 W = Tkinter.W 39 CENTER = Tkinter.CENTER 40 END = Tkinter. END 41 NORMAL = Tkinter. NORMAL 42 DISABLED = Tkinter. DISABLED 43 NONE = Tkinter . NONE 44 WORD = Tkinter. WORD 45 VERTICAL = Tkinter. VERTICAL 46 HORIZONTAL = Tkinter. HORIZONTAL 47 RAISED = Tkinter. RAISED 48 SINGLE = Tkinter. SINGLE 49 ACTIVE = Tkinter. ACTIVE Be sure to use the field names provided in the comments in your starter code. An example of the program is shown below: Temperature Converter 51 class EasyFrame (Tkinter Frame): “” “Represents an application window.” Celsius Fahrenheit 0.0 32.0 >>>> <<<< > Terminal +. Grading sandbox $ 0 When you have completed your program, click the Submit button to record your score. breezypythongui.py temperatureconvert… + ILLUS LI ates the use or numer td metus. 6 7 from breezypythongui import EasyFrame 9 class TemperatureConverter (EasyFrame): “A termperature conversion program.”” def __init__(self): “””Sets up the window and widgets.” # The controller methods def computeFahr (self): “” “Inputs the Celsius degrees and outputs the Fahrenheit degrees.” def computeCelsius(self): “Inputs the Fahrenheit degrees and outputs the Celsius degrees. *** 27 def main(): 28 “Instantiate and pop up the window.” TemperatureConverter()-mainloop() 31 if name__ == “__main_”: main(): 32 33 Temperature Converter Celsius Fahrenheit 0.0 32.0 <<<< Show transcribed image text Programming Exercise 8.3 0 x nstructions breezypythongui.py temperatureconvert… +. Desktop Write a GUl-based program that allows the user to convert temperature values between degrees Fahrenheit and degrees Celsius. The interface should have labeled entry fields for these two values. These components should be arranged in a grid where the labels occupy the first row and the corresponding fields occupy the second row. At start-up, the Fahrenheit field should contain 32.0, and the Celsius field should contain 0.0. The third row in the window contains two command buttons, labeled >>>> and

Expert Answer


Answer to Write a GUI-based program that allows the user to convert temperature values between degrees Fahrenheit and degrees Cels…

OR