Added gobs of stuff, see wxPython/README.txt for details git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			63 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
 | |
| from wxPython.wx import *
 | |
| 
 | |
| #---------------------------------------------------------------------------
 | |
| 
 | |
| def runTest(frame, nb, log):
 | |
|     dlg = wxFileDialog(frame, "Choose a file", ".", "", "*.*", wxOPEN)
 | |
|     if dlg.ShowModal() == wxID_OK:
 | |
|         log.WriteText('You selected: %s\n' % dlg.GetPath())
 | |
|     dlg.Destroy()
 | |
| 
 | |
| #---------------------------------------------------------------------------
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| overview = """\
 | |
| This class represents the file chooser dialog.
 | |
| 
 | |
| wxFileDialog()
 | |
| ----------------------------
 | |
| 
 | |
| wxFileDialog(wxWindow* parent, const wxString& message = "Choose a file", const wxString& defaultDir = ""
 | |
| , const wxString& defaultFile = "", const wxString& wildcard = "*.*", long style = 0, const wxPoint& pos = wxDefaultPosition)
 | |
| 
 | |
| Constructor. Use wxFileDialog::ShowModal to show the dialog.
 | |
| 
 | |
| Parameters
 | |
| -------------------
 | |
| 
 | |
| parent = Parent window.
 | |
| 
 | |
| message = Message to show on the dialog.
 | |
| 
 | |
| defaultDir = The default directory, or the empty string.
 | |
| 
 | |
| defaultFile = The default filename, or the empty string.
 | |
| 
 | |
| wildcard = A wildcard, such as "*.*".
 | |
| 
 | |
| style = A dialog style. A bitlist of:
 | |
| 
 | |
| wxOPEN	This is an open dialog (Windows only).
 | |
| 
 | |
| wxSAVE	This is a save dialog (Windows only).
 | |
| 
 | |
| wxHIDE_READONLY	Hide read-only files (Windows only).
 | |
| 
 | |
| wxOVERWRITE_PROMPT	Prompt for a conformation if a file will be overridden (Windows only).
 | |
| 
 | |
| pos = Dialog position.
 | |
| """
 |