Changes in src/sas/sasgui/perspectives/invariant/invariant_panel.py [c12f9b4:654e8e0] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/invariant/invariant_panel.py
rc12f9b4 r654e8e0 250 250 251 251 num = self.state.saved_state['state_num'] 252 if num> 0:252 if int(num) > 0: 253 253 self._set_undo_flag(True) 254 if num< len(state.state_list) - 1:254 if int(num) < len(state.state_list) - 1: 255 255 self._set_redo_flag(True) 256 256 … … 830 830 """ 831 831 try: 832 attr = getattr(self, key) 832 if key in ['compute_num', 'file', 'is_time_machine', 'state_num']: 833 return 834 else: 835 attr = getattr(self, key) 833 836 if attr.__class__.__name__ == "StaticText": 834 837 return 835 if type(value) is not bool: 838 if value in ["True", "False", True, False]: 839 value = bool(value) 840 else: 836 841 value = str(value) 837 842 attr.SetValue(value) … … 1860 1865 (self.button_calculate, 0, 1861 1866 wx.RIGHT | wx.TOP | wx.BOTTOM, 10), 1862 (self.button_help, 0, 1867 (self.button_help, 0, 1863 1868 wx.RIGHT | wx.TOP | wx.BOTTOM, 10),]) 1864 1869 def _do_layout(self): … … 1882 1887 self.SetSizer(self.main_sizer) 1883 1888 self.SetAutoLayout(True) 1884 1889 1885 1890 def on_help(self, event): 1886 1891 """ 1887 Bring up the Invariant Documentation whenever the HELP button is 1892 Bring up the Invariant Documentation whenever the HELP button is 1888 1893 clicked. 1889 1894
Note: See TracChangeset
for help on using the changeset viewer.