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