Advertisement
MrsMcLead

ECS orderform

Nov 18th, 2013
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.11 KB | None | 0 0
  1. from tkinter import*
  2. import tkinter.simpledialog
  3. import tkinter.messagebox
  4.  
  5. root = Tk()
  6. w = Label(root, text="Order Form")
  7. w.pack()
  8.  
  9.  
  10. name = tkinter.simpledialog.askstring("Name", "Please enter your name")
  11. tkinter.messagebox.showinfo("Order Summary", "Order Summary for " + name)
  12.  
  13. # Directions:
  14.  
  15. #    You will complete a program that simulates ordering something
  16. #    online.  First, you need to ask the user for 3 things: name, address,
  17. #    item ordered. (name is already done for you)
  18. #
  19. #    Ask the user for name, parts of the address separately (street, city,
  20. #    state and zipcode), and 3 separate items for their order.  The address
  21. #    will be used for both the shipping and  billing addresses.
  22. #    Then, make your program output the following in a single box
  23. #    (Don't forget the newlines):
  24. #
  25. #    Order Summary for <name>:
  26. #    Shipping Address:
  27. #    <name>
  28. #    <street> <city>, <state> <zipcode>
  29. #    Billing Address:
  30. #    <name>
  31. #    <street> <city>, <state> <zipcode>
  32. #    Items:
  33. #    <item1>, <item2>, <item3>
  34. #
  35. #    For extra credit, include an introduction to your online store.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement