<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=rtl><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1255">
<META content="MSHTML 6.00.2800.1561" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2></FONT><FONT size=2></FONT><BR></DIV>
<DIV><FONT size=2></FONT><FONT size=2></FONT><FONT size=2></FONT><FONT 
size=2></FONT><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Hi!</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; My demo is from wspython.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT><FONT size=2></FONT><FONT size=2></FONT><FONT 
size=2></FONT><FONT size=2></FONT><BR></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=4>Hello,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=4>I am starting to use 
Python+NumPy+SciPy+Matplotlib as a substitute to MATLAB.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=4></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=4>I need a simple GUI that can help me to 
open files and save file <U><STRONG>i.e.</STRONG></U></FONT><FONT face=Arial 
size=4><U><STRONG>&nbsp;something similar to uigetfile in 
MATLAB</STRONG></U>.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=4>Is there a simple script that opens a 
window with a possibility to browse through the file system and&nbsp;pick an 
ASCII&nbsp;file ?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=4>After the file is spcified using the GUI, I 
want to read it using fromfile and similar commands.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=4>After I process the data I want a similar 
GUI that enables choosing the path and name for saving the results 
file.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=4></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=4>Are scripts of this type available 
?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=4></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=4>Thanks</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=4>Eli Brosh</FONT></DIV>
<P><FONT size=2></FONT> 
<P><FONT size=2>This method allows you to either display the last file name or 
change the fn to "" for an open command so it does not display the file name. 
Then fn assignment commented out...</FONT> 
<P><FONT size=2></FONT><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
self.dirname=os.getcwd()&nbsp; #SEARCH FROM PRESENT 
DIRECTORY!<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.filename=""</FONT> 

<P>&nbsp;&nbsp;&nbsp; def setFilePath(self, 
type4file=""):<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " Search directory 
for path and file name!"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
fn=self.filename<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t4f = 
wx.OPEN<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if type4file[0] in 
"sS":<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t4f 

wx.SAVE|wx.FD_OVERWRITE_PROMPT<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
fn = self.filename<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dlg = 
wx.FileDialog(self, self.filename +" or Choose a file",<BR>self.dirname, fn, 
"*.*", t4f)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if dlg.ShowModal() == 
wx.ID_OK:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
self.filename = 
dlg.GetFilename()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
self.dirname = dlg.GetDirectory()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
dlg.Destroy()<BR></P></BODY></HTML>