X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/137b5242b1834999da2883c7a68fbde28c6fba37..0b9d8fe18e02e9d848d205c3f36812cd56fc1bcd:/wxPython/demo/wxDirDialog.py?ds=inline diff --git a/wxPython/demo/wxDirDialog.py b/wxPython/demo/wxDirDialog.py index bbed89b9d8..cfb935d9b9 100644 --- a/wxPython/demo/wxDirDialog.py +++ b/wxPython/demo/wxDirDialog.py @@ -4,7 +4,8 @@ from wxPython.wx import * #--------------------------------------------------------------------------- def runTest(frame, nb, log): - dlg = wxDirDialog(frame, "Choose a directory:") + dlg = wxDirDialog(frame, "Choose a directory:", + style=wxDD_DEFAULT_STYLE|wxDD_NEW_DIR_BUTTON) if dlg.ShowModal() == wxID_OK: log.WriteText('You selected: %s\n' % dlg.GetPath()) dlg.Destroy() @@ -15,39 +16,13 @@ def runTest(frame, nb, log): - - - - - - - - - - - - - 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. +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) -pos = Dialog position. -"""