they can be passed an initialdir (start directory)initialfile (for "file name")title (for the dialog window)defaultextension (appended if the selection has none)and parent (to appear as an embedded child instead of pop-up dialogthey can be made to remember the last directory selected by using exported objects instead of these function calls-- hook we'll make use of in later longer-lived examples another common dialog call in the tkinter filedialog moduleaskdirectorycan be used to pop up dialog that allows users to choose directory rather than file it presents tree view that users can navigate to pick the desired directoryand it accepts keyword arguments including initialdir and title the corresponding directory object remembers the last directory selected and starts there the next time the dialog is shown we'll use most of these interfaces later in the bookespecially for the file dialogs in the pyedit example in but feel free to flip ahead for more details now the directory selection dialog will show up in the pyphoto example in and the pymailgui example in againskip ahead for code and screenshots finallythe demo bar' color button triggers standard askcolor callwhich generates the standard color selection dialog shown in figure - dialogs