Changeset dee097b in sasview for guiframe


Ignore:
Timestamp:
Apr 29, 2011 7:53:11 PM (14 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:
0275276
Parents:
fcf072d
Message:

now it updating Residual on view from menu bar

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    re7b6c9d rdee097b  
    10341034         
    10351035        """ 
    1036         self.show_panel(evt.GetId(), 'on') 
     1036        panel_id = str(evt.GetId()) 
     1037        self.on_set_plot_focus(self.panels[panel_id]) 
     1038        self.show_panel(evt.GetId(), 'on')       
    10371039        wx.CallLater(5, self.set_schedule(True)) 
     1040        self.set_plot_unfocus() 
    10381041         
    10391042    def on_close_welcome_panel(self): 
     
    20872090            Draw A panel in the full dwar list 
    20882091            """ 
    2089             # Check if the panel is shown 
    2090             if self._mgr.GetPane(panel.window_name).IsShown(): 
    2091                 try: 
    2092                     # This checking of GetCapture is to stop redrawing 
    2093                     # while any panel is capture. 
    2094                     if self.GetCapture() == None: 
    2095                         # draw if possible 
    2096                         panel.set_resizing(False) 
    2097                         panel.draw_plot() 
    2098                 except: 
    2099                     pass 
     2092            try: 
     2093                # This checking of GetCapture is to stop redrawing 
     2094                # while any panel is capture. 
     2095                if self.GetCapture() == None: 
     2096                    # draw if possible 
     2097                    panel.set_resizing(False) 
     2098                    panel.draw_plot() 
     2099                    # Check if the panel is not shown 
     2100                    if not self._mgr.GetPane(panel.window_name).IsShown(): 
     2101                        self._mgr.GetPane(panel.window_name).Hide() 
     2102            except: 
     2103                pass 
    21002104        #print self.callback,self.schedule,self.schedule_full_draw_list 
    21012105         
     
    21272131        Set focus on a plot panel 
    21282132        """ 
    2129         for plot in self.plot_panels.values(): 
    2130             # make sure we don't double focus 
    2131             if panel != plot: 
    2132                 plot.on_kill_focus(None) 
    2133  
     2133        self.set_plot_unfocus() 
    21342134        panel.on_set_focus(None)   
    21352135        # set focusing panel 
     
    21372137        self.set_panel_on_focus(None) 
    21382138     
     2139    def set_plot_unfocus(self):  
     2140        """ 
     2141        Un focus all plot panels 
     2142        """ 
     2143        for plot in self.plot_panels.values(): 
     2144            plot.on_kill_focus(None) 
     2145 
    21392146    def _onDrawIdle(self, *args, **kwargs): 
    21402147        """ 
  • guiframe/local_perspectives/plotting/Plotter1D.py

    rdf68da1 rdee097b  
    229229            wx.PostEvent(self.parent, StatusEvent(status=position)) 
    230230         
    231         self.on_set_focus(None)     
     231        #self.on_set_focus(None)     
    232232        #post nd event to notify guiframe that this panel is on focus 
    233233        wx.PostEvent(self.parent, PanelOnFocusEvent(panel=self)) 
Note: See TracChangeset for help on using the changeset viewer.