mailr13783 - in /branches/gui_testing/gui: menu.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 July 20, 2011 - 16:06:
Author: bugman
Date: Wed Jul 20 16:06:51 2011
New Revision: 13783

URL: http://svn.gna.org/viewcvs/relax?rev=13783&view=rev
Log:
Created a menu entry for the as of yet non-existent data pipe editor window.


Modified:
    branches/gui_testing/gui/menu.py
    branches/gui_testing/gui/relax_gui.py

Modified: branches/gui_testing/gui/menu.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/menu.py?rev=13783&r1=13782&r2=13783&view=diff
==============================================================================
--- branches/gui_testing/gui/menu.py (original)
+++ branches/gui_testing/gui/menu.py Wed Jul 20 16:06:51 2011
@@ -72,9 +72,10 @@
         # The 'View' menu entries.
         menu = wx.Menu()
         menu.AppendItem(self.build_menu_item(menu, id=50, 
text="&Controller\tCtrl+Z", icon=paths.icon_16x16.controller))
-        menu.AppendItem(self.build_menu_item(menu, id=51, text="relax 
&prompt\tCtrl+P", icon=paths.icon_16x16.relax_prompt))
         menu.AppendItem(self.build_menu_item(menu, id=52, text="&Spin 
view\tCtrl+T", icon=paths.icon_16x16.spin))
         menu.AppendItem(self.build_menu_item(menu, id=53, text="&Results 
viewer\tCtrl+R", icon=paths.icon_16x16.view_statistics))
+        menu.AppendItem(self.build_menu_item(menu, id=54, text="&Data pipe 
editor", icon=paths.icon_16x16.pipe))
+        menu.AppendItem(self.build_menu_item(menu, id=51, text="relax 
&prompt\tCtrl+P", icon=paths.icon_16x16.relax_prompt))
         self.menubar.Append(menu, "&View")
 
         # The 'View' actions.
@@ -82,6 +83,7 @@
         self.gui.Bind(wx.EVT_MENU, self.gui.show_prompt,                    
id=51)
         self.gui.Bind(wx.EVT_MENU, self.gui.show_tree,                      
id=52)
         self.gui.Bind(wx.EVT_MENU, self.gui.analysis.show_results_viewer,   
id=53)
+        self.gui.Bind(wx.EVT_MENU, self.gui.show_pipe_editor,               
id=54)
 
         # The 'User functions' menu entries.
         self._user_functions()

Modified: branches/gui_testing/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/relax_gui.py?rev=13783&r1=13782&r2=13783&view=diff
==============================================================================
--- branches/gui_testing/gui/relax_gui.py (original)
+++ branches/gui_testing/gui/relax_gui.py Wed Jul 20 16:06:51 2011
@@ -379,6 +379,18 @@
             self.controller.Show()
 
 
+    def show_pipe_editor(self, event):
+        """Display the data pipe editor window.
+
+        @param event:   The wx event.
+        @type event:    wx event
+        """
+
+        # Open the window.
+        if status.show_gui:
+            self.pipe_editor.Show()
+
+
     def show_prompt(self, event):
         """Display the relax prompt window.
 




Related Messages


Powered by MHonArc, Updated Wed Jul 20 18:00:02 2011