mailr28188 - /trunk/user_functions/sys_info.py


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

Header


Content

Posted by tlinnet on April 02, 2016 - 17:07:
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())




Related Messages


Powered by MHonArc, Updated Sat Apr 02 17:40:08 2016