Page 435 -
P. 435

the index


              guessing game, 3–34                              creating (defining), 82, 111
              health club example, 178–213                     local functions, 356–358, 383
              mixing software example, 314–347, 350–382        parameters for, 96–98, 101, 111
              Starbuzz Coffee, 38–74, 78–110                   returning data structures from, 164–167, 170–172
              storeroom example, 294–310                       returning values from, 87–88, 111
              Surf-A-Thon example, 114–143, 146–174            with same name in different modules, 206–211, 213
           except statement, 298–300, 311                      scope of variables in, 104–108
           exceptions, 296–300, 311
           exclamation point, equal sign (!=), not equal to operator,
                30                                          G
           extend() method, arrays, 138
                                                            game show example, 216–254
                                                               answers, displaying in GUI, 246–254
                                                               answers, sound effects for, 216–228
           F                                                   answers, tallying, 216–218, 226–228
                                                               GUI for, 230–245
           false value, 14                                  get() method
           File menu                                           data entry widgets, 262, 263, 269, 278
              New Window option, 6                             IntVar() variable, 332, 334
              Save option, 7                                get_busy() method, channels, 221
           files                                            global variables, 108–109, 244
              handles for, 116                              gmtime() function, time library, 70
              permissions for, 295                          graphical user interface. (see GUI)
              reading all files in directory, 378–381
              reading from, 116–118, 166                    greater than operator (>), 62, 75
           find() method, strings, 56–58                    Greene, Jennifer (Head First C#), 388
           float() function, 64–65, 118                     grouping widgets, 363–364
           for loop, 116–118, 154–156                       guessing game example, 3–34
                                                               guesses, determining if correct, 3–8
           format strings, 180–184, 186, 214
                                                               guesses, higher or lower hints for, 10–25
           formatted data, 179
                                                               multiple guesses, allowing, 26–34
           FQNs (fully qualified names), 207–211, 213, 214  GUI (graphical user interface), 215, 230–232. (see also
           Frame() widget, 364, 373, 383                         widgets)
           fully qualified names (FQNs), 207–211, 213, 214     displaying messages in, 246–254, 303–309, 311
                                                               errors not displayed in, 295
           functional programming, 394
                                                               event loop for, 233–234
           functions, 82. (see also reusing code; specific functions)  guidelines for, 341
              calling, 82, 84                                  positioning widgets in, 235–238





           400    Index
   430   431   432   433   434   435   436   437   438   439   440