mailr13339 - /branches/gui_testing/gui/components/spin_view.py


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

Header


Content

Posted by edward on June 30, 2011 - 13:32:
Author: bugman
Date: Thu Jun 30 13:32:02 2011
New Revision: 13339

URL: http://svn.gna.org/viewcvs/relax?rev=13339&view=rev
Log:
Started to create a menu bar for the spin tree window.


Modified:
    branches/gui_testing/gui/components/spin_view.py

Modified: branches/gui_testing/gui/components/spin_view.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/components/spin_view.py?rev=13339&r1=13338&r2=13339&view=diff
==============================================================================
--- branches/gui_testing/gui/components/spin_view.py (original)
+++ branches/gui_testing/gui/components/spin_view.py Thu Jun 30 13:32:02 2011
@@ -858,12 +858,28 @@
         # Set up the window.
         sizer = self.setup_window()
 
+        # Create a menu.
+        self._create_menu()
+
         # Build the toolbar.
         self.toolbar()
 
         # The splitter window.
         splitter = Tree_splitter(self.gui, self, -1)
         sizer.Add(splitter, 1, wx.EXPAND|wx.ALL, 0)
+
+
+    def _create_menu(self):
+        """Build a menu for the window."""
+
+        # Create the menu bar GUI item and add it to the main frame.
+        self.menubar = wx.MenuBar()
+        self.SetMenuBar(self.menubar)
+
+        # The molecule menu entry.
+        menu = wx.Menu()
+        menu.AppendItem(self.gui.menu.build_menu_item(menu, text="&copy", 
icon=paths.icon_16x16.copy, fn=self.gui.user_functions.molecule.copy))
+        self.menubar.Append(menu, "&Molecule")
 
 
     def Show(self, show=True):




Related Messages


Powered by MHonArc, Updated Thu Jun 30 14:20:03 2011