Page 276 -
P. 276

building a graphical user interface






           choice = input(prompt)
           while choice != '0':
               if choice == '1':
                   number_asked = number_asked + 1
                   number_correct = number_correct + 1
                   wait_finish(correct_s.play())
               if choice == '2':
                   number_asked = number_asked + 1
                   number_wrong = number_wrong + 1
                   wait_finish(wrong_s.play())
               choice = input(prompt)


           print("You asked " + str(number_asked) + " questions.")
           print(str(number_correct) + " were correctly answered.")
           print(str(number_wrong) + " were answered incorrectly.")












                                   With the code you need identified, take the time to update
                                  your GUI application with the new functions and whatever
                                  other code you’ve extracted from the non-GUI program.
                                   Produce a new program that is a combination of your existing
                                  GUI code and the extracted code from this program.

















                                                                                       you are here 4    241
   271   272   273   274   275   276   277   278   279   280   281