mailr28167 - /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 - 11:36:
Author: tlinnet
Date: Sat Apr  2 11:36:00 2016
New Revision: 28167

URL: http://svn.gna.org/viewcvs/relax?rev=28167&view=rev
Log:
In the GUI the userfunctions sys_info() and time() are now grouped into a 
"system" subclass.

This is to prepare for other system related functions.


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=28167&r1=28166&r2=28167&view=diff
==============================================================================
--- trunk/user_functions/sys_info.py    (original)
+++ trunk/user_functions/sys_info.py    Sat Apr  2 11:36:00 2016
@@ -29,8 +29,15 @@
 from user_functions.objects import Desc_container
 
 
+# The user function class.
+uf_class = uf_info.add_class('system')
+uf_class.title = "Class containing the OS system related functions."
+uf_class.menu_text = "&system"
+uf_class.gui_icon = "oxygen.actions.help-about"
+
+
 # The sys_info user function.
-uf = uf_info.add_uf('sys_info')
+uf = uf_info.add_uf('system.sys_info')
 uf.title = "Display all system information relating to this version of 
relax."
 uf.title_short = "Display system information."
 uf.display = True
@@ -45,7 +52,7 @@
 
 
 # The time user function.
-uf = uf_info.add_uf('time')
+uf = uf_info.add_uf('system.time')
 uf.title = "Display the current time."
 uf.title_short = "Current time."
 uf.display = True




Related Messages


Powered by MHonArc, Updated Sat Apr 02 12:40:06 2016