Author: tlinnet
Date: Sat Apr  2 17:07:50 2016
New Revision: 28188

URL: http://svn.gna.org/viewcvs/relax?rev=28188&view=rev
Log:
Changing to a filedialog for the userfunction system.cd()

Modified:
    trunk/user_functions/sys_info.py

Modified: trunk/user_functions/sys_info.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/user_functions/sys_info.py?rev=28188&r1=28187&r2=28188&view=diff
==============================================================================
--- trunk/user_functions/sys_info.py    (original)
+++ trunk/user_functions/sys_info.py    Sat Apr  2 17:07:50 2016
@@ -23,6 +23,11 @@
 """The sys_info user function definitions."""
 
 # Python module imports.
+import dep_check
+if dep_check.wx_module:
+    from wx import FD_CHANGE_DIR
+else:
+    FD_CHANGE_DIR = -1
 from os import sep
 
 # relax module imports.
@@ -49,8 +54,11 @@
 uf.add_keyarg(
     name = "path",
     py_type = "str",
+    arg_type = "dir sel",
     desc_short = "path",
-    desc = "The path to the new current working directory."
+    desc = "The path to the new current working directory.",
+    can_be_none = False,
+    wiz_filesel_style = FD_CHANGE_DIR
 )
 # Description.
 uf.desc.append(Desc_container())


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to