mailr10402 - /branches/bieri_gui/gui_bieri/filedialog.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on January 26, 2010 - 18:37:
Author: bugman
Date: Tue Jan 26 18:26:49 2010
New Revision: 10402

URL: http://svn.gna.org/viewcvs/relax?rev=10402&view=rev
Log:
Changed the filetype keyword arg to openfile() and savefile() to default to 
''.

This allows the arg to not be supplied.


Modified:
    branches/bieri_gui/gui_bieri/filedialog.py

Modified: branches/bieri_gui/gui_bieri/filedialog.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/filedialog.py?rev=10402&r1=10401&r2=10402&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/filedialog.py (original)
+++ branches/bieri_gui/gui_bieri/filedialog.py Tue Jan 26 18:26:49 2010
@@ -56,7 +56,7 @@
         return newdir
 
 
-def openfile(msg=None, directory=None, filetype=None, default=None):
+def openfile(msg=None, directory=None, filetype='', default=None):
     """Open a file.
 
     For example to open /usr/save.relaxGUI, where the supported files to 
open are: *.relaxGUI, *.*:
@@ -92,7 +92,7 @@
         return dialog.GetPath()
 
 
-def savefile(msg=None, directory=None, filetype=None, default=None):
+def savefile(msg=None, directory=None, filetype='', default=None):
     """Save a file.
 
     For example to save /usr/save.relaxGUI, where the supported files to 
open are: *.relaxGUI, *.*:




Related Messages


Powered by MHonArc, Updated Tue Jan 26 18:40:03 2010