- %addtofunc wxFileDialog "self._setOORInfo(self)"
-
- wxFileDialog(wxWindow* parent,
- const wxString& message = wxPyFileSelectorPromptStr,
- const wxString& defaultDir = wxPyEmptyString,
- const wxString& defaultFile = wxPyEmptyString,
- const wxString& wildcard = wxPyFileSelectorDefaultWildcardStr,
- long style = 0,
- const wxPoint& pos = wxDefaultPosition);
-
-
- void SetMessage(const wxString& message);
- void SetPath(const wxString& path);
- void SetDirectory(const wxString& dir);
- void SetFilename(const wxString& name);
- void SetWildcard(const wxString& wildCard);
- void SetStyle(long style);
- void SetFilterIndex(int filterIndex);
-
- wxString GetMessage() const;
- wxString GetPath() const;
- wxString GetDirectory() const;
- wxString GetFilename() const;
- wxString GetWildcard() const;
- long GetStyle() const;
- int GetFilterIndex() const;
+ %pythonAppend wxFileDialog "self._setOORInfo(self)"
+
+ DocCtorStr(
+ wxFileDialog(wxWindow* parent,
+ const wxString& message = wxPyFileSelectorPromptStr,
+ const wxString& defaultDir = wxPyEmptyString,
+ const wxString& defaultFile = wxPyEmptyString,
+ const wxString& wildcard = wxPyFileSelectorDefaultWildcardStr,
+ long style = 0,
+ const wxPoint& pos = wxDefaultPosition),
+ "Constructor. Use ShowModal method to show the dialog.", "");
+
+
+ DocDeclStr(
+ void , SetMessage(const wxString& message),
+ "Sets the message that will be displayed on the dialog.", "");
+
+ DocDeclStr(
+ void , SetPath(const wxString& path),
+ "Sets the path (the combined directory and filename that will be
+returned when the dialog is dismissed).", "");
+
+ DocDeclStr(
+ void , SetDirectory(const wxString& dir),
+ "Sets the default directory.", "");
+
+ DocDeclStr(
+ void , SetFilename(const wxString& name),
+ "Sets the default filename.", "");
+
+ DocDeclStr(
+ void , SetWildcard(const wxString& wildCard),
+ "Sets the wildcard, which can contain multiple file types, for
+example::
+
+ \"BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif\"
+", "");
+
+ DocDeclStr(
+ void , SetStyle(long style),
+ "Sets the dialog style.", "");
+
+ DocDeclStr(
+ void , SetFilterIndex(int filterIndex),
+ "Sets the default filter index, starting from zero.", "");
+
+ DocDeclStr(
+ wxString , GetMessage() const,
+ "Returns the message that will be displayed on the dialog.", "");
+
+ DocDeclStr(
+ wxString , GetPath() const,
+ "Returns the full path (directory and filename) of the selected file.", "");
+
+ DocDeclStr(
+ wxString , GetDirectory() const,
+ "Returns the default directory.", "");
+
+ DocDeclStr(
+ wxString , GetFilename() const,
+ "Returns the default filename.", "");
+
+ DocDeclStr(
+ wxString , GetWildcard() const,
+ "Returns the file dialog wildcard.", "");
+
+ DocDeclStr(
+ long , GetStyle() const,
+ "Returns the dialog style.", "");
+
+ DocDeclStr(
+ int , GetFilterIndex() const,
+ "Returns the index into the list of filters supplied, optionally, in
+the wildcard parameter. Before the dialog is shown, this is the index
+which will be used when the dialog is first displayed. After the
+dialog is shown, this is the index selected by the user.", "");
+