Argument |
Data type/notes |
self |
the window (background) that is the parent
for the dialog |
message |
quoted string that provides a prompt to be displayed inside the dialog box |
path |
quoted string providing the initial directory in which to open the dialog. Providing an invalid or non-existent directory places the user at the top level of the directory structure. If this string is empty, the directory dialog opens to the top-level directory. |
result = dialog.directoryDialog(self, 'Choose a directory',
'')
result = dialog.directoryDialog(self, 'Choose a directory', 'C:\\Python23')
Name of value |
Description |
accepted |
True = user clicked OK False = user clicked Cancel |
path |
string containing the full path to the
chosen directory |