mailr11711 - in /branches/bieri_gui/gui_bieri: paths.py relax_gui.py


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

Header


Content

Posted by edward on December 06, 2010 - 22:34:
Author: bugman
Date: Mon Dec  6 22:34:12 2010
New Revision: 11711

URL: http://svn.gna.org/viewcvs/relax?rev=11711&view=rev
Log:
Created a menu called 'User functions', and added the first entry 'script'.


Modified:
    branches/bieri_gui/gui_bieri/paths.py
    branches/bieri_gui/gui_bieri/relax_gui.py

Modified: branches/bieri_gui/gui_bieri/paths.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/paths.py?rev=11711&r1=11710&r2=11711&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/paths.py (original)
+++ branches/bieri_gui/gui_bieri/paths.py Mon Dec  6 22:34:12 2010
@@ -58,6 +58,7 @@
 SETTINGS_GLOBAL_ICON = ICON_PATH + 
'16x16'+sep+'categories'+sep+'preferences-system.png'
 SETTINGS_RESET_ICON = ICON_PATH + '16x16'+sep+'actions'+sep+'edit-delete.png'
 REF_ICON = ICON_PATH + '16x16'+sep+'actions'+sep+'flag-blue.png'
+UF_SCRIPT_ICON = ICON_PATH + 
'16x16'+sep+'mimetypes'+sep+'application-x-desktop.png'
 
 # 48x48 icons.
 #ADD_ICON = ICON_PATH + '48x48'+sep+'actions'+sep+'list-add-relax-blue.png'

Modified: branches/bieri_gui/gui_bieri/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/relax_gui.py?rev=11711&r1=11710&r2=11711&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/relax_gui.py (original)
+++ branches/bieri_gui/gui_bieri/relax_gui.py Mon Dec  6 22:34:12 2010
@@ -57,6 +57,7 @@
 from filedialog import opendir, openfile, savefile
 from message import dir_message, error_message, question
 from paths import ABOUT_RELAX_ICON, ABOUT_RELAXGUI_ICON, CONTACT_ICON, 
CONTROLLER_ICON, EXIT_ICON, IMAGE_PATH, LOAD_ICON, MANUAL_ICON, NEW_ICON, 
OPEN_ICON, REF_ICON, RELAX_PROMPT_ICON, SAVE_ICON, SAVE_AS_ICON, 
SETTINGS_ICON, SETTINGS_GLOBAL_ICON, SETTINGS_RESET_ICON
+from gui_bieri import paths
 from references import References
 from relax_prompt import Prompt
 from settings import import_file_settings, load_sequence, 
relax_global_settings
@@ -298,6 +299,14 @@
         self.Bind(wx.EVT_MENU, self.show_controller,    id=50)
         self.Bind(wx.EVT_MENU, self.show_prompt,        id=51)
         #self.Bind(wx.EVT_MENU, self.show_tree,          id=52)
+
+        # The 'User functions' menu entries.
+        menu = wx.Menu()
+        menu.AppendItem(self.build_menu_sub_item(menu, id=10, 
text="&Script", icon=paths.UF_SCRIPT_ICON))
+        menubar.Append(menu, "&User functions")
+
+        # The 'User functions' menu actions.
+        #self.Bind(wx.EVT_MENU, self.user_functions.script,  id=10)
 
         # The 'Molecule' menu entries.
         menu = wx.Menu()




Related Messages


Powered by MHonArc, Updated Mon Dec 06 22:40:01 2010