Question: Modify your Mail Delivery Service Python application from the previous assignment and add an event handler to the Process button to display a pop -

Modify your Mail Delivery Service Python application from the previous assignment and add an
event handler to the "Process" button to display a pop-up box containing the information, as shown
below.
Mail Delivery Service Application
Enter weight in pounds:
Type of Delivey
Local
Long Distance:
Insurance
Weight: 10.2
Type of Delivery: Local
Insurance: Yes
Figure a) Input information and pop-up box when the Process button is clicked.
Figure b) Input information and pop-up box when Process button is clicked.
Modify your Mail Delivery Service Application so that the program displays the fee for the delivery
service based on the table shown below.
Table: Delivery Service Fees
If the insurance is checked, add $4.00 to the fee.
***** This is the python code*****
import tkinter
mainFrame = tkinter.Tk()
mainFrame.geometry("400x220")
mainFrame.title("Mail Delivery Service Application")
weightLabel = tkinter.Label(text="Enter weight in pounds:")
weightLabel.place(x=20, y=20)
weightEntry = tkinter.Entry()
weightEntry.place(x=160, y=20)
typeofDeliveryLabel = tkinter.Label(text="Type of Delivery")
typeofDeliveryLabel.place(x=20, y=70)
localDelivery = tkinter.Radiobutton(text="Local")
localDelivery.place(x=120, y=70)
longDistance = tkinter.Radiobutton(text="Long Distance")
longDistance.place(x=180, y=70)
insuranceOption = tkinter.Checkbutton(text="Insurance")
insuranceOption.place(x=20, y=110)
processButton = tkinter.Button(text="Process")
processButton.place(x=100, y=150)
resetButton = tkinter.Button(text="Reset")
resetButton.place(x=160, y=150)
Modify your Mail Delivery Service Python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!