Page 303 -
P. 303

test drive



                     Test Drive





           The deliveries program is ready, so it is time for the demo. With the code
           entered into IDLE, press F5 to fire it up and you should see this:
                                                                              Your GUI is
                                                                              looking good.


















                                                                                           The data you
                                                                                           enter into the
                                                                                          text fields gets
                                                                                          written to the
                                   Click!                                                 file.




                                                                 Depot:
                                                                 Seattle, WA
          You can enter data into each of the fields, even the multi-  Description:
           line address. When you click Save, the fields all get cleared.   Books
           When you open up the deliveries.txt file, you see that   Address:
           the data you entered into the GUI has been saved.     1 Main Street
                                                                 Anytown
                                                                                      Cool! That‛s exactly
                                                                                      WA
                                                                                      what we need. I‛ll
                                                                                      tell every office to
                                                                                      start using it.



           Congratulations! You’ve written your
           first GUI data-entry application.



           268    Chapter 8
   298   299   300   301   302   303   304   305   306   307   308