Changeset b07ffca in sasview


Ignore:
Timestamp:
Apr 24, 2013 4:41:38 PM (12 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:
79b550a
Parents:
7aa1685
Message:

minor fixes in focusing graph name in combobox:Data Panel

Files:
4 edited

Legend:

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

    rae84427 rb07ffca  
    805805            wx.PostEvent(self._manager.parent, 
    806806                    StatusEvent(status=msg, info=infor)) 
    807             raise 
    808807        # inform msg to wx 
    809808        wx.PostEvent(self._manager.parent, 
  • plottools/src/danse/common/plottools/PlotPanel.py

    rae84427 rb07ffca  
    303303        self.color = '#0099f7' 
    304304        self.figure.set_edgecolor(self.color) 
     305        if self.parent and self.window_caption: 
     306            self.parent.send_focus_to_datapanel(self.window_caption) 
    305307        self.draw() 
    306308         
  • sansguiframe/src/sans/guiframe/gui_manager.py

    r9159cb9 rb07ffca  
    692692        """ 
    693693        return 
    694          
     694     
     695    def send_focus_to_datapanel(self, name):   
     696        """ 
     697        Send focusing on ID to data explorer 
     698        """ 
     699        if self._data_panel != None: 
     700            self._data_panel.set_panel_on_focus(name) 
     701             
    695702    def set_panel_on_focus_helper(self): 
    696703        """ 
    697704        Helper for panel on focus with data_panel 
    698705        """ 
    699         ID = self.panel_on_focus.uid 
    700         if self._data_panel != None: 
    701             self._data_panel.set_panel_on_focus(ID) 
     706        caption = self.panel_on_focus.window_caption 
     707        self.send_focus_to_datapanel(caption) 
    702708        #update combo 
    703709        if self.panel_on_focus in self.plot_panels.values(): 
     
    30933099        if panel == None: 
    30943100            return 
    3095         self.set_plot_unfocus() 
     3101        #self.set_plot_unfocus() 
    30963102        panel.on_set_focus(None)   
    30973103        # set focusing panel 
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py

    rae84427 rb07ffca  
    539539        Display the position of the mouse on the statusbar 
    540540        """ 
     541        #self.parent.set_plot_unfocus()  
    541542        self._get_cusor_lines(event) 
    542543        ax = event.inaxes 
    543544        PlotPanel.onLeftDown(self, event) 
    544  
    545545        if ax != None: 
    546546            try: 
Note: See TracChangeset for help on using the changeset viewer.