Changeset 58fc26c in sasview


Ignore:
Timestamp:
Oct 17, 2011 1:48:53 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
4679e16
Parents:
6085557
Message:

fixed unstable c_panel focusing problem

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/basepage.py

    rde5036c r58fc26c  
    298298        if self._manager is not None: 
    299299            wx.PostEvent(self._manager.parent, PanelOnFocusEvent(panel=self)) 
    300             if self._manager.menu1 != None: 
    301                 chain_menu = self._manager.menu1.FindItemById(\ 
    302                                                         self._manager.id_reset_flag) 
    303                 chain_menu.Enable(self.batch_on) 
    304                 sim_menu = self._manager.menu1.FindItemById(self._manager.id_simfit) 
    305                 sim_menu.Enable(not self.batch_on and self.data.is_data\ 
    306                                 and (self.model!=None)) 
     300            self.on_tap_focus() 
    307301                
    308  
     302    def on_tap_focus(self): 
     303        """ 
     304        Update menu1 on cliking the page tap 
     305        """ 
     306        if self._manager.menu1 != None: 
     307            chain_menu = self._manager.menu1.FindItemById(\ 
     308                                                    self._manager.id_reset_flag) 
     309            chain_menu.Enable(self.batch_on) 
     310            sim_menu = self._manager.menu1.FindItemById(self._manager.id_simfit) 
     311            sim_menu.Enable(not self.batch_on and self.data.is_data\ 
     312                            and (self.model!=None))  
     313     
    309314    class ModelTextCtrl(wx.TextCtrl): 
    310315        """ 
  • sansguiframe/src/sans/guiframe/gui_manager.py

    r6085557 r58fc26c  
    599599            cpanel = self.panel_on_focus 
    600600            if self.cpanel_on_focus != cpanel: 
    601                 #cpanel.on_set_focus(None) 
     601                cpanel.on_tap_focus() 
    602602                self.cpanel_on_focus = self.panel_on_focus 
    603603                 
Note: See TracChangeset for help on using the changeset viewer.