[prev in list] [next in list] [prev in thread] [next in thread]
List: relax-commits
Subject: r13339 - /branches/gui_testing/gui/components/spin_view.py
From: edward () domain ! hid
Date: 2011-06-30 11:32:03
Message-ID: E1QcFTX-00027z-Be () domain ! hid
[Download RAW message or body]
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="©", \
icon=paths.icon_16x16.copy, fn=self.gui.user_functions.molecule.copy)) + \
self.menubar.Append(menu, "&Molecule")
def Show(self, show=True):
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic