Author: bugman Date: Thu Jun 30 14:19:09 2011 New Revision: 13343 URL: http://svn.gna.org/viewcvs/relax?rev=13343&view=rev Log: Added the residue and spin menus to 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=13343&r1=13342&r2=13343&view=diff ============================================================================== --- branches/gui_testing/gui/components/spin_view.py (original) +++ branches/gui_testing/gui/components/spin_view.py Thu Jun 30 14:19:09 2011 @@ -878,10 +878,24 @@ # The molecule menu entry. menu = wx.Menu() - menu.AppendItem(self.gui.menu.build_menu_item(menu, parent=self, id=1, text="©", icon=paths.icon_16x16.copy, fn=self.gui.user_functions.molecule.copy)) + menu.AppendItem(self.gui.menu.build_menu_item(menu, parent=self, text="©", icon=paths.icon_16x16.copy, fn=self.gui.user_functions.molecule.copy)) menu.AppendItem(self.gui.menu.build_menu_item(menu, parent=self, text="crea&te", icon=paths.icon_16x16.add, fn=self.gui.user_functions.molecule.create)) menu.AppendItem(self.gui.menu.build_menu_item(menu, parent=self, text="&delete", icon=paths.icon_16x16.remove, fn=self.gui.user_functions.molecule.delete)) self.menubar.Append(menu, "&molecule") + + # The residue menu entry. + menu = wx.Menu() + menu.AppendItem(self.gui.menu.build_menu_item(menu, parent=self, text="©", icon=paths.icon_16x16.copy, fn=self.gui.user_functions.residue.copy)) + menu.AppendItem(self.gui.menu.build_menu_item(menu, parent=self, text="crea&te", icon=paths.icon_16x16.add, fn=self.gui.user_functions.residue.create)) + menu.AppendItem(self.gui.menu.build_menu_item(menu, parent=self, text="&delete", icon=paths.icon_16x16.remove, fn=self.gui.user_functions.residue.delete)) + self.menubar.Append(menu, "&residue") + + # The spin menu entry. + menu = wx.Menu() + menu.AppendItem(self.gui.menu.build_menu_item(menu, parent=self, id=1, text="©", icon=paths.icon_16x16.copy, fn=self.gui.user_functions.spin.copy)) + menu.AppendItem(self.gui.menu.build_menu_item(menu, parent=self, text="crea&te", icon=paths.icon_16x16.add, fn=self.gui.user_functions.spin.create)) + menu.AppendItem(self.gui.menu.build_menu_item(menu, parent=self, text="&delete", icon=paths.icon_16x16.remove, fn=self.gui.user_functions.spin.delete)) + self.menubar.Append(menu, "&spin") def Show(self, show=True):