Changeset 568e1a5 in sasview
- Timestamp:
- Jan 16, 2009 5:43:59 PM (16 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:
- 8a7a21b
- Parents:
- 2a3a890
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
re9b4cc4 r568e1a5 7 7 from danse.common.plottools.PlotPanel import PlotPanel 8 8 from sans.guicomm.events import NewPlotEvent, StatusEvent 9 from sans.guicomm.events import EVT_SLICER_PARS 10 9 11 from sans.fit.AbstractFitEngine import Model,Data,FitData1D,FitData2D 10 12 from fitproblem import FitProblem … … 32 34 ## List of panels for the simulation perspective (names) 33 35 self.perspective = [] 34 36 self.mypanels=[] 35 37 self.calc_thread = None 36 38 self.done = False … … 125 127 #index number to create random model name 126 128 self.index_model = 0 129 self.parent.Bind(EVT_SLICER_PARS, self._on_slicer_event) 127 130 #create the fitting panel 128 return [self.fit_panel] 131 #return [self.fit_panel] 132 self.mypanels.append(self.fit_panel) 133 return self.mypanels 134 def _on_slicer_event(self, event): 135 print "slicer event ", event.panel 136 new_panel = event.panel 137 # Set group ID if available 138 event_id = self.parent.popup_panel(new_panel) 139 #self.menu.Append(event_id, new_panel.window_caption, 140 # "Show %s plot panel" % new_panel.window_caption) 141 # Set UID to allow us to reference the panel later 142 new_panel.uid = event_id 143 144 self.mypanels.append(new_panel) 145 return 129 146 def _on_show_panel(self, event): 130 147 print "_on_show_panel: fitting"
Note: See TracChangeset
for help on using the changeset viewer.