Changeset bf4402c3 in sasview for guiframe


Ignore:
Timestamp:
Jan 31, 2011 2:04:51 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

remove unused code

Location:
guiframe
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r6db811e rbf4402c3  
    104104        self._help_menu = None 
    105105        self._tool_menu = None 
     106        self._plugin_menu_list = [] 
    106107        ## Find plug-ins 
    107108        # Modify this so that we can specify the directory to look into 
     
    112113        ## List of panels 
    113114        self.panels = {} 
    114  
    115         ## Next available ID for wx gui events  
    116         #TODO:  No longer used - remove all calls to this  
    117         self.next_id = 20000 
    118115 
    119116        # Default locations 
     
    143140        Store reference to the last panel on focus 
    144141        """ 
    145         print "set_panel_on_focus", event.panel 
    146142        self.panel_on_focus = event.panel 
    147143        if self.panel_on_focus is not None and self._data_panel is not None: 
     
    515511        for item in self.plugins: 
    516512            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): 
    519515                    self._menubar.Append(menu, name) 
    520516                    
     
    567563        self._window_menu = wx.Menu() 
    568564        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): 
    571566                self._window_menu.AppendSubMenu(menu, name) 
    572567        self._window_menu.AppendSeparator() 
  • guiframe/local_perspectives/plotting/plotting.py

    rd0ecb36 rbf4402c3  
    3636        return True 
    3737     
    38     def populate_menu(self, id, parent): 
     38    def populate_menu(self, parent): 
    3939        """ 
    4040        Create a 'Plot' menu to list the panels 
     
    5050                             "No plot available") 
    5151        self.menu.FindItemByPosition(0).Enable(False) 
    52         return [(id, self.menu, "Plot")] 
     52        return [(self.menu, "Plot")] 
    5353     
    5454    def get_panels(self, parent): 
  • guiframe/plugin_base.py

    r6db811e rbf4402c3  
    9494        return [] 
    9595         
    96     def populate_menu(self, id, parent): 
     96    def populate_menu(self, parent): 
    9797        """ 
    9898        Create and return the list of application menu 
    9999        items for the plug-in.  
    100100         
    101         :param id: deprecated. Un-used. 
    102101        :param parent: parent window 
    103102         
Note: See TracChangeset for help on using the changeset viewer.