Author: tlinnet Date: Sat Apr 2 12:38:41 2016 New Revision: 28168 URL: http://svn.gna.org/viewcvs/relax?rev=28168&view=rev Log: Added a new 16x16 icon for the oxygen folder-favorites icon.
Added: trunk/graphics/oxygen_icons/16x16/places/ trunk/graphics/oxygen_icons/16x16/places/folder-favorites.png (with props) Modified: trunk/lib/__init__.py trunk/user_functions/sys_info.py Added: trunk/graphics/oxygen_icons/16x16/places/folder-favorites.png URL: http://svn.gna.org/viewcvs/relax/trunk/graphics/oxygen_icons/16x16/places/folder-favorites.png?rev=28168&view=auto ============================================================================== Binary file - no diff available. Propchange: trunk/graphics/oxygen_icons/16x16/places/folder-favorites.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Modified: trunk/lib/__init__.py URL: http://svn.gna.org/viewcvs/relax/trunk/lib/__init__.py?rev=28168&r1=28167&r2=28168&view=diff ============================================================================== --- trunk/lib/__init__.py (original) +++ trunk/lib/__init__.py Sat Apr 2 12:38:41 2016 @@ -58,6 +58,7 @@ 'spectrum', 'statistics', 'structure', + 'system', 'text', 'timing', 'warnings', Modified: trunk/user_functions/sys_info.py URL: http://svn.gna.org/viewcvs/relax/trunk/user_functions/sys_info.py?rev=28168&r1=28167&r2=28168&view=diff ============================================================================== --- trunk/user_functions/sys_info.py (original) +++ trunk/user_functions/sys_info.py Sat Apr 2 12:38:41 2016 @@ -24,6 +24,7 @@ # relax module imports. from info import print_sys_info +from lib.system import cd from lib.timing import print_time from user_functions.data import Uf_info; uf_info = Uf_info() from user_functions.objects import Desc_container @@ -34,6 +35,29 @@ uf_class.title = "Class containing the OS system related functions." uf_class.menu_text = "&system" uf_class.gui_icon = "oxygen.actions.help-about" + + +# The cd user function. +uf = uf_info.add_uf('system.cd') +uf.title = "Change the current working directory to the specified path." +uf.title_short = "Change current working directory." +uf.display = True +uf.add_keyarg( + name = "path", + py_type = "str", + desc_short = "path", + desc = "The path to the new current working directory." +) +# Description. +uf.desc.append(Desc_container()) +uf.desc[-1].add_paragraph("The equivalent of python module os.chdir(path). Change the current working directory to the specified path.") +uf.desc[-1].add_paragraph("To change the current working directory, type:") +uf.desc[-1].add_prompt("relax> system.cd(\"/path/to/dir\")") +uf.backend = cd +uf.menu_text = "&cd" +uf.gui_icon = "oxygen.places.folder-favorites" +uf.wizard_size = (700, 400) +uf.wizard_apply_button = False # The sys_info user function. _______________________________________________ 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