Changeset 48665ed in sasview


Ignore:
Timestamp:
Apr 19, 2011 2:17:35 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:
7ad8faa
Parents:
52f3c98
Message:

fixed freeze button

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_panel.py

    r0a2fdca r48665ed  
    247247        wx.EVT_BUTTON(self, self.bt_plot.GetId(), self.on_plot) 
    248248         
    249         self.bt_freeze = wx.Button(self, wx.NewId(), "Freeze") 
    250         self.bt_freeze.SetToolTipString("To trigger freeze") 
     249        self.bt_freeze = wx.Button(self, wx.NewId(), "Freeze Theory") 
     250        self.bt_freeze.SetToolTipString("To trigger freeze a theory") 
    251251        wx.EVT_BUTTON(self, self.bt_freeze.GetId(), self.on_freeze) 
    252252         
     
    363363        """ 
    364364        """ 
     365        # Not implemented 
     366        return 
     367        """ 
    365368        _, data_class, _= self.tree_ctrl.GetItemPyData(item)  
    366369        if item.IsChecked(): 
     
    377380            else: 
    378381                self.bt_freeze.Disable() 
    379                 
     382        """        
    380383    def load_data_list(self, list): 
    381384        """ 
     
    384387        if not list: 
    385388            return 
    386          
     389        # uncheck previous items 
     390        self._uncheck_all()     
     391            
    387392        for state_id, dstate in list.iteritems(): 
    388393            data = dstate.get_data() 
     
    435440            self.append_theory(state_id, theory_list) 
    436441         
    437     
     442    def _uncheck_all(self): 
     443        """ 
     444        Uncheck all check boxes 
     445        """ 
     446        for item in self.list_cb_data.values(): 
     447            data_ctrl, _, _, _,_, _ = item 
     448            self.tree_ctrl.CheckItem(data_ctrl, False)  
     449         
    438450    def old_append_theory(self, state_id, theory_list): 
    439451        """ 
     
    652664                              theory_id=theory_id, 
    653665                              append=False) 
    654          
     666          
    655667    def on_close_page(self, event=None): 
    656668        """ 
  • guiframe/gui_manager.py

    r52f3c98 r48665ed  
    214214            if self._data_panel is not None: 
    215215                panel_name = self.panel_on_focus.window_caption 
    216                 self._data_panel.set_panel_on_focus(ID)#panel_name) 
     216                ID = self.panel_on_focus.uid 
     217                self._data_panel.set_panel_on_focus(ID) 
    217218                #update combo 
    218219                if self.panel_on_focus in self.plot_panels.values(): 
     
    20202021            if panel != plot: 
    20212022                plot.on_kill_focus(None) 
     2023 
    20222024        panel.on_set_focus(None)   
    20232025        # set focusing panel 
Note: See TracChangeset for help on using the changeset viewer.