Changeset cab076b in sasview


Ignore:
Timestamp:
Feb 1, 2011 7:52:17 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:
a9c4034
Parents:
7bc88bf
Message:

remove change of perspective when click on menu fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitting.py

    r0912feab rcab076b  
    118118        logging.info("Fitting plug-in started")  
    119119         
    120     def populate_menu(self, id, owner): 
     120    def populate_menu(self, owner): 
    121121        """ 
    122122        Create a menu for the Fitting plug-in 
     
    151151        wx.EVT_MENU(owner, id1, self.on_add_sim_page) 
    152152        
    153         #menu for model 
    154         menu2 = wx.Menu() 
    155         self.menu_mng.populate_menu(menu2, owner) 
    156         id2 = wx.NewId() 
    157         owner.Bind(models.EVT_MODEL,self._on_model_menu) 
    158        
    159153        self.fit_panel.set_owner(owner) 
    160154        self.fit_panel.set_model_list(self.menu_mng.get_model_list()) 
    161155    
    162156        #create  menubar items 
    163         return [(id, self.menu1, "Fitting")] 
     157        return [(self.menu1, "Fitting")] 
    164158                
    165159    def on_add_sim_page(self, event): 
     
    167161        Create a page to access simultaneous fit option 
    168162        """ 
    169         Plugin.on_perspective(self,event=event) 
    170163        if self.sim_page != None: 
    171164            msg= "Simultaneous Fit page already opened" 
     
    952945        set engine to park 
    953946        """ 
    954         Plugin.on_perspective(self,event=event) 
    955947        self._on_change_engine('park') 
    956948        
Note: See TracChangeset for help on using the changeset viewer.