Changeset 05228b0 in sasview for src/sas/sasgui
- Timestamp:
- Apr 22, 2016 3:55:08 PM (9 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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 243fbc0
- Parents:
- 4188da8
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitpanel.py
rf60251f r05228b0 17 17 import models 18 18 _BOX_WIDTH = 80 19 20 19 21 20 class FitPanel(nb, PanelBase): … … 154 153 """ 155 154 """ 156 from bumps.options import FIT_CONFIG157 current = FIT_CONFIG.selected_name158 self.parent.SetTitle(self.window_name + " - Active Fitting Optimizer: " + current)159 155 pos = self.GetSelection() 160 156 if pos != -1: -
src/sas/sasgui/perspectives/fitting/fitting.py
r86b049b r05228b0 56 56 ON_MAC = True 57 57 58 58 import bumps.options 59 from bumps.gui.fit_dialog import show_fit_config 60 try: 61 from bumps.gui.fit_dialog import EVT_FITTER_CHANGED 62 except ImportError: 63 EVT_FITTER_CHANGED = None # type: wx.PyCommandEvent 59 64 60 65 class Plugin(PluginBase): … … 501 506 self.parent.Bind(EVT_SLICER_PANEL, self._on_slicer_event) 502 507 self.parent.Bind(EVT_SLICER_PARS_UPDATE, self._onEVT_SLICER_PANEL) 508 509 if EVT_FITTER_CHANGED is not None: 510 self.parent.Bind(EVT_FITTER_CHANGED, self.on_fitter_changed) 511 self._set_fitter_label(bumps.options.FIT_CONFIG) 512 503 513 #self.parent._mgr.Bind(wx.aui.EVT_AUI_PANE_CLOSE,self._onclearslicer) 504 514 #Create reader when fitting panel are created … … 763 773 Open the bumps options panel. 764 774 """ 765 try: 766 from bumps.gui.fit_dialog import show_fit_config 767 show_fit_config(self.parent, help=self.on_help) 768 except ImportError: 769 # CRUFT: Bumps 0.7.5.6 and earlier do not have the help button 770 from bumps.gui.fit_dialog import OpenFitOptions 771 OpenFitOptions() 775 show_fit_config(self.parent, help=self.on_help) 776 777 def on_fitter_changed(self, event): 778 self._set_fitter_label(event.config) 779 780 def _set_fitter_label(self, config): 781 self.fit_panel.parent.SetTitle(self.fit_panel.window_name 782 + " - Active Fitting Optimizer: " 783 + config.selected_name) 772 784 773 785 def on_help(self, algorithm_id):
Note: See TracChangeset
for help on using the changeset viewer.