Changeset 32673ac in sasview
- Timestamp:
- Jan 21, 2009 6:42:54 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:
- 54cc36a
- Parents:
- 2eb40c5
- Location:
- sansview/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage1D.py
r3dcd7b5 r32673ac 185 185 self.qmin= 0.001 186 186 self.qmax= 0.1 187 """ 188 bs = wx.BoxSizer(wx.VERTICAL) 189 bs.Add(self.scroll, 1, wx.EXPAND) 190 self.SetSizer(bs) 191 self.scroll.SetSizer(self.vbox) 192 self.scroll.SetScrollbars(20,20,55,40) 193 #width,height = self.GetSize() 194 """ 187 195 188 self.vbox.Layout() 196 189 self.vbox.Fit(self) -
sansview/perspectives/fitting/fitting.py
rb2c6d23 r32673ac 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_PA RS9 from sans.guicomm.events import EVT_SLICER_PANEL 10 10 11 11 from sans.fit.AbstractFitEngine import Model,Data,FitData1D,FitData2D … … 130 130 #index number to create random model name 131 131 self.index_model = 0 132 self.parent.Bind(EVT_SLICER_PA RS, self._on_slicer_event)132 self.parent.Bind(EVT_SLICER_PANEL, self._on_slicer_event) 133 133 #create the fitting panel 134 134 #return [self.fit_panel] 135 135 136 self.mypanels.append(self.fit_panel) 136 137 return self.mypanels 137 138 def _on_slicer_event(self, event): 138 print " slicer event ", event.panel139 print "fitting:slicer event ", event.panel 139 140 new_panel = event.panel 140 141 # Set group ID if available 141 142 event_id = self.parent.popup_panel(new_panel) 142 #self.menu.Append(event_id, new_panel.window_caption,143 #"Show %s plot panel" % new_panel.window_caption)143 self.menu1.Append(event_id, new_panel.window_caption, 144 "Show %s plot panel" % new_panel.window_caption) 144 145 # Set UID to allow us to reference the panel later 145 146 new_panel.uid = event_id 146 147 new_panel 147 148 self.mypanels.append(new_panel) 148 149 return -
sansview/perspectives/fitting/modelpage.py
r2eb40c5 r32673ac 208 208 self.enable2D=True 209 209 self._draw_model() 210 else: 211 self.manager.menu1.Append(event_id, new_panel.window_caption, 212 "Show %s plot panel" % new_panel.window_caption) 210 213 211 214 def populate_box(self, dict): … … 441 444 enable2D=self.enable2D) 442 445 443 444 446 445 447
Note: See TracChangeset
for help on using the changeset viewer.