Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/invariant/invariant_panel.py

    r654e8e0 rc12f9b4  
    250250 
    251251            num = self.state.saved_state['state_num'] 
    252             if int(num) > 0: 
     252            if num > 0: 
    253253                self._set_undo_flag(True) 
    254             if int(num) < len(state.state_list) - 1: 
     254            if num < len(state.state_list) - 1: 
    255255                self._set_redo_flag(True) 
    256256 
     
    830830        """ 
    831831        try: 
    832             if key in ['compute_num', 'file', 'is_time_machine', 'state_num']: 
    833                 return 
    834             else: 
    835                 attr = getattr(self, key) 
     832            attr = getattr(self, key) 
    836833            if attr.__class__.__name__ == "StaticText": 
    837834                return 
    838             if value in ["True", "False", True, False]: 
    839                 value = bool(value) 
    840             else: 
     835            if type(value) is not bool: 
    841836                value = str(value) 
    842837            attr.SetValue(value) 
     
    18651860                                   (self.button_calculate, 0, 
    18661861                                    wx.RIGHT | wx.TOP | wx.BOTTOM, 10), 
    1867                                    (self.button_help, 0, 
     1862                                   (self.button_help, 0,  
    18681863                                    wx.RIGHT | wx.TOP | wx.BOTTOM, 10),]) 
    18691864    def _do_layout(self): 
     
    18871882        self.SetSizer(self.main_sizer) 
    18881883        self.SetAutoLayout(True) 
    1889  
     1884         
    18901885    def on_help(self, event): 
    18911886        """ 
    1892         Bring up the Invariant Documentation whenever the HELP button is 
     1887        Bring up the Invariant Documentation whenever the HELP button is  
    18931888        clicked. 
    18941889 
Note: See TracChangeset for help on using the changeset viewer.