Changeset bf4402c3 in sasview
- Timestamp:
- Jan 31, 2011 2:04:51 PM (14 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- cbf22e5
- Parents:
- 8994b6b
- Location:
- guiframe
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r6db811e rbf4402c3 104 104 self._help_menu = None 105 105 self._tool_menu = None 106 self._plugin_menu_list = [] 106 107 ## Find plug-ins 107 108 # Modify this so that we can specify the directory to look into … … 112 113 ## List of panels 113 114 self.panels = {} 114 115 ## Next available ID for wx gui events116 #TODO: No longer used - remove all calls to this117 self.next_id = 20000118 115 119 116 # Default locations … … 143 140 Store reference to the last panel on focus 144 141 """ 145 print "set_panel_on_focus", event.panel146 142 self.panel_on_focus = event.panel 147 143 if self.panel_on_focus is not None and self._data_panel is not None: … … 515 511 for item in self.plugins: 516 512 if item != self._plotting_plugin: 517 for ( self.next_id,menu, name) in \518 item.populate_menu(self .next_id, self):513 for (menu, name) in \ 514 item.populate_menu(self): 519 515 self._menubar.Append(menu, name) 520 516 … … 567 563 self._window_menu = wx.Menu() 568 564 if self._plotting_plugin is not None: 569 for (self.next_id, menu, name) in \ 570 self._plotting_plugin.populate_menu(self.next_id, self): 565 for (menu, name) in self._plotting_plugin.populate_menu(self): 571 566 self._window_menu.AppendSubMenu(menu, name) 572 567 self._window_menu.AppendSeparator() -
guiframe/local_perspectives/plotting/plotting.py
rd0ecb36 rbf4402c3 36 36 return True 37 37 38 def populate_menu(self, id,parent):38 def populate_menu(self, parent): 39 39 """ 40 40 Create a 'Plot' menu to list the panels … … 50 50 "No plot available") 51 51 self.menu.FindItemByPosition(0).Enable(False) 52 return [( id,self.menu, "Plot")]52 return [(self.menu, "Plot")] 53 53 54 54 def get_panels(self, parent): -
guiframe/plugin_base.py
r6db811e rbf4402c3 94 94 return [] 95 95 96 def populate_menu(self, id,parent):96 def populate_menu(self, parent): 97 97 """ 98 98 Create and return the list of application menu 99 99 items for the plug-in. 100 100 101 :param id: deprecated. Un-used.102 101 :param parent: parent window 103 102
Note: See TracChangeset
for help on using the changeset viewer.