Changeset 18b7ecb9 in sasview
- Timestamp:
- Oct 7, 2016 4:26:18 PM (8 years ago)
- 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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- ed9f872, 1f648cf8
- Parents:
- 48b8f6d
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/07/16 16:24:39)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (10/07/16 16:26:18)
- Location:
- src/sas/sasgui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/panel_base.py
rd85c194 r18b7ecb9 317 317 """ 318 318 return self._drag_flag 319 319 320 def _set_analysis(self, flag): 321 """ 322 Set the Analysis Save state flag and informs the manager 323 so it refreshes the menu/whole panel 324 """ 325 self._set_save_flag(flag) 326 if self._manager is not None: 327 wx.PostEvent(self._manager.parent, PanelOnFocusEvent(panel=self)) 328 320 329 def _set_reset_flag(self, flag=True): 321 330 """ -
src/sas/sasgui/perspectives/invariant/invariant_panel.py
r654e8e0 r18b7ecb9 95 95 self.is_state_data = False 96 96 self.is_power_out = False 97 self._set_analysis(False) 97 98 98 99 #container of invariant value … … 170 171 self._reset_state_list() 171 172 self._set_bookmark_flag(True) 173 self._set_analysis(True) 172 174 return True 173 175 … … 281 283 self.new_state = False 282 284 self.is_state_data = False 285 self._set_analysis(True) 283 286 284 287 def clear_panel(self): … … 911 914 self.button_calculate.SetFocus() 912 915 #self.SetupScrolling() 916 self._set_analysis(False) 913 917 914 918 def _set_state(self, event): -
src/sas/sasgui/perspectives/pr/inversion_panel.py
r5a58656 r18b7ecb9 43 43 #Set window's font size 44 44 self.SetWindowVariant(variant=FONT_VARIANT) 45 self._set_analysis(False) 45 46 46 47 self.plots = plots … … 396 397 self.bck = state.bck 397 398 399 # We have the data available for serialization 400 self._set_analysis(True) 401 398 402 # Perform inversion 399 403 self._on_invert(None) … … 401 405 def set_manager(self, manager): 402 406 self._manager = manager 407 if manager is not None: 408 self._set_analysis(False) 403 409 404 410 def _do_layout(self): … … 752 758 self.nterms_estimate_ctl.Enable(False) 753 759 self.nterms_estimate_ctl.SetLabel("") 760 self._set_analysis(False) 761 754 762 self._on_pars_changed() 755 763 … … 936 944 self._on_pars_changed(None) 937 945 self._on_invert(None) 946 self._set_analysis(True) 938 947 except: 939 948 msg = "InversionControl._change_file: %s" % sys.exc_value
Note: See TracChangeset
for help on using the changeset viewer.