Page 78 - Programming the Raspberry Pi Getting Started with Python
P. 78

This code returns something like this:


          File Chooser
          File  Choosers  can  be  found  in  the  package tkinter.filedialog.  These  follow  exactly  the  same
          pattern as the other dialogs we have looked at.

          Menus
          You can give your applications menus. As an example, we can create a very simple application with
          an entry field and a couple of menu options (see Figure 7-11).







          Figure 7-11   Menus
   73   74   75   76   77   78   79   80   81   82   83