Changeset 70e439f in sasview


Ignore:
Timestamp:
Oct 15, 2011 4:54:50 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:
9a56619
Parents:
cd74d14
Message:

made chainfitting menu active by page batch on

Location:
fittingview/src/sans/perspectives/fitting
Files:
2 edited

Legend:

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

    rea8283d r70e439f  
    297297        if self._manager is not None: 
    298298            wx.PostEvent(self._manager.parent, PanelOnFocusEvent(panel=self)) 
    299          
     299            chain_menu = self._manager.menu1.FindItemById(self._manager.id_reset_flag) 
     300            chain_menu.Enable(self.batch_on) 
     301 
    300302    class ModelTextCtrl(wx.TextCtrl): 
    301303        """ 
  • fittingview/src/sans/perspectives/fitting/fitting.py

    r34ffeed r70e439f  
    201201                                   resetf_help)  
    202202        wx.EVT_MENU(owner, self.id_reset_flag,  self.on_reset_batch_flag) 
    203         self.menu1.FindItemById(self.id_reset_flag).Check(not self.batch_reset_flag) 
    204          
     203        chain_menu = self.menu1.FindItemById(self.id_reset_flag) 
     204        chain_menu.Check(not self.batch_reset_flag) 
     205        chain_menu.Enable(self.batch_on) 
    205206        #create  menubar items 
    206207        return [(self.menu1, self.sub_menu)] 
Note: See TracChangeset for help on using the changeset viewer.