X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8a693e6e0460b6b3c32e4b6f114a3ab7b7cd24ea..f6bcfd974ef26faf6f91a62cac09827e09463fd1:/wxPython/demo/wxDirDialog.py diff --git a/wxPython/demo/wxDirDialog.py b/wxPython/demo/wxDirDialog.py new file mode 100644 index 0000000000..1e40bf2bb1 --- /dev/null +++ b/wxPython/demo/wxDirDialog.py @@ -0,0 +1,53 @@ + +from wxPython.wx import * + +#--------------------------------------------------------------------------- + +def runTest(frame, nb, log): + dlg = wxDirDialog(frame) + if dlg.ShowModal() == wxID_OK: + log.WriteText('You selected: %s\n' % dlg.GetPath()) + dlg.Destroy() + +#--------------------------------------------------------------------------- + + + + + + + + + + + + + + + + + + +overview = """\ +This class represents the directory chooser dialog. + +wxDirDialog() +------------------------ + +wxDirDialog(wxWindow* parent, const wxString& message = "Choose a directory", const wxString& defaultPath = "", long style = 0, const wxPoint& pos = wxDefaultPosition) + +Constructor. Use wxDirDialog::ShowModal to show the dialog. + +Parameters +------------------- + +parent = Parent window. + +message = Message to show on the dialog. + +defaultPath = The default path, or the empty string. + +style = A dialog style, currently unused. + +pos = Dialog position. +"""