Question: Hello, I would like some help with writing a program in Python using wxPython. I've got most of the code completed, but it isn't running
Hello, I would like some help with writing a program in Python using wxPython. I've got most of the code completed, but it isn't running like it should be. I'm not sure where I'm going wrong with it so I'd like some help if possible. The pictures are what the outcome should look like. I've also listed the guidelines below. Thank you!


This assignment is to use wxPython to make a shipping calculator. The total cost will vary with package weight, shipping speed, and any extras the user might request. The layout should look something like this.
This is the default state of the interface (first radio of each radio button selected, everything else clear). Nothing has been calculated or else the Clear Form button has just been clicked.
You'll need these wxPython widgets:
3 TextCtrl widgets; one for name, one for address, and one for city-state-zip
7 radio buttons total, with a group of 3 for package weight, and a group of 4 for package delivery speed
2 check boxes for selecting options
2 buttons, one to trigger calculating the total, the other to reset the form in its default position.
a number of StaticText widgets to make sure everything is labeled clearly
a label at the bottom of the frame where the results will be printed. Since the form has been cleared in the image above you cannot see the summary label until something is actually calculated. (see the image later on this page)
Shipping Calculator Name Address City, State, and Zip Weight01.9lbs.$5.0024.9lbs.$8.00510lbs.$12.25SpeedOverland$2.753-dayAir$6.152-dayAir$10.70Overnight$15.50OptionsExtraPadding$4GiftWrapping$6 Calculate Total Clear Form Shipping Summary Mr Ralph Cramden 12101 Studebaker Drive Grayhound, TX 20002 $20.15
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
