Page 300 -
P. 300

guis and data




                                                In addition to the GUI code, you need to write the function that
                                                will save the data from the GUI to the deliveries.txt file.

                 The Save button on the interface is going to call a function called save_data(). The function will
                 append the data from the GUI to the end of the deliveries.txt file formatted like this:


                                              Depot:
                                              Seattle, WA
                                              Description:
                                              Books
                                              Address:
                                              1 Main Street
                                              Anytown
                                              WA



                 Then it will need to clear the fields on the form to make them ready for the next record to be entered.
                 The function will have to appear in the program before the GUI code. Write the code for the function
                 here:
                 Don't forget: it FIRST
                 needs to save the data.
                 THEN it needs to clear
                 the fields.


































                                                                                       you are here 4    265
   295   296   297   298   299   300   301   302   303   304   305