Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import*
- import tkinter.simpledialog
- import tkinter.messagebox
- root = Tk()
- w = Label(root, text="Order Form")
- w.pack()
- name = tkinter.simpledialog.askstring("Name", "Please enter your name")
- tkinter.messagebox.showinfo("Order Summary", "Order Summary for " + name)
- # Directions:
- # You will complete a program that simulates ordering something
- # online. First, you need to ask the user for 3 things: name, address,
- # item ordered. (name is already done for you)
- #
- # Ask the user for name, parts of the address separately (street, city,
- # state and zipcode), and 3 separate items for their order. The address
- # will be used for both the shipping and billing addresses.
- # Then, make your program output the following in a single box
- # (Don't forget the newlines):
- #
- # Order Summary for <name>:
- # Shipping Address:
- # <name>
- # <street> <city>, <state> <zipcode>
- # Billing Address:
- # <name>
- # <street> <city>, <state> <zipcode>
- # Items:
- # <item1>, <item2>, <item3>
- #
- # For extra credit, include an introduction to your online store.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement