mailr14687 - /1.3/gui/pipe_editor.py


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

Header


Content

Posted by edward on September 19, 2011 - 11:27:
Author: bugman
Date: Mon Sep 19 11:27:26 2011
New Revision: 14687

URL: http://svn.gna.org/viewcvs/relax?rev=14687&view=rev
Log:
Fixes for the pop up menu in the data pipe editor window.

The parent window is now correctly set, so the menu entries are now 
functional.


Modified:
    1.3/gui/pipe_editor.py

Modified: 1.3/gui/pipe_editor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/pipe_editor.py?rev=14687&r1=14686&r2=14687&view=diff
==============================================================================
--- 1.3/gui/pipe_editor.py (original)
+++ 1.3/gui/pipe_editor.py Mon Sep 19 11:27:26 2011
@@ -172,20 +172,20 @@
         menu = wx.Menu()
 
         # Menu entry:  delete the data pipe.
-        item = build_menu_item(menu, parent=self.main_panel, text="&Delete 
the pipe", icon=icon_16x16.remove, fn=self.pipe_delete)
+        item = build_menu_item(menu, parent=self, text="&Delete the pipe", 
icon=icon_16x16.remove, fn=self.pipe_delete)
         menu.AppendItem(item)
         if status.exec_lock.locked():
             item.Enable(False)
  
         # Menu entry:  switch to this data pipe.
-        item = build_menu_item(menu, parent=self.main_panel, text="&Switch 
to this pipe", icon=icon_16x16.pipe_switch, fn=self.pipe_switch)
+        item = build_menu_item(menu, parent=self, text="&Switch to this 
pipe", icon=icon_16x16.pipe_switch, fn=self.pipe_switch)
         menu.AppendItem(item)
         if status.exec_lock.locked():
             item.Enable(False)
  
         # Menu entry:  new auto-analysis tab.
         if self.gui.analysis.page_index_from_pipe(self.selected_pipe) == 
None and pipe_type in ['noe', 'r1', 'r2', 'mf']:
-            item = build_menu_item(menu, parent=self.main_panel, 
text="&Associate with a new auto-analysis", icon=icon_16x16.new, 
fn=self.associate_auto)
+            item = build_menu_item(menu, parent=self, text="&Associate with 
a new auto-analysis", icon=icon_16x16.new, fn=self.associate_auto)
             menu.AppendItem(item)
             if status.exec_lock.locked():
                 item.Enable(False)




Related Messages


Powered by MHonArc, Updated Mon Sep 19 11:40:02 2011