Page 434 -
P. 434

the index


           D                                                DJ example. (see mixing software example)
                                                            Don’t Repeat Yourself (DRY), 88
           data entry widgets                               DoubleVar() variable, 340, 345, 348
              Checkbutton() widget, 331–335, 348            drop down lists, 248. (see also OptionMenu() widget)
              Entry() widget, 261–262, 266–267, 269, 292    DRY (Don’t Repeat Yourself), 88
              model for, 276–278, 285, 292
              OptionMenu() widget, 284–290, 292
              populating dynamically, 288–290, 292
              RadioButton() widget, 272–273, 275–280, 292
              restricting input to, 271–273                 E
              Scale() widget, 336–338, 340–345, 348
              Text() widget, 261, 263, 266–267, 269, 292    Eclipse IDE, 395
           data storage, 129–130                            editors, 5, 395. (see also IDLE)
           data structures, 131, 150. (see also arrays; hashes)  Emacs editor, 395
              list of, 152                                  encapsulation, 392
              returning from functions, 164–167             endswith() method, strings, 56
           database, 170–172, 175                           Entry() widget, 261, 269, 292
           datatypes, converting, 4, 9, 64–65, 75              creating, 266–267
           date and time functions, 68–73                      methods for, 262
           daylight() function, time library, 70            equal sign (=), assignment operator, 4
           debugging, 390                                   equal sign, double (==), equal to operator, 4, 15
           decision points. (see branches)                  Eric IDE, 395

           decode() method, 49                              errors, 311. (see also debugging; testing)
                                                               crashes resulting from, 296
           def keyword, 82, 111
                                                               displayed in Shell instead of GUI, 295
           delete() method, data entry widgets, 262, 263, 267, 269
                                                               displaying in message boxes, 303–309
           delivery company example, 258–291                   exceptions, 296–300, 311
              dynamic depot options for, 283–291               TypeError message, 63–64
              errors in delivery tracking, handling, 294–310   ValueError message, 119–120
              GUI for delivery system, 258–268              event loop, 233–234, 255
              user input, controlling, 271–281
                                                            events
           destroy() method, apps, 326, 348
                                                               handlers for, 239, 244–245, 255
           dialog boxes, 248. (see also message boxes)         from operating system, 319, 348
           dictionaries. (see hashes)                          from Window Manager, 319–324, 326–327
           directories, reading files in, 378–381           examples
                                                               delivery company example, 258–291
           disk storage, 129
                                                               game show example, 216–254




                                                                                       you are here 4    399
   429   430   431   432   433   434   435   436   437   438   439