Changeset 378d2eb in sasview
- Timestamp:
- Mar 30, 2010 3:45:28 PM (15 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:
- b500652
- Parents:
- 6546e4b
- Location:
- calculatorview/perspectives/calculator
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/perspectives/calculator/calculator.py
ra3498fa r378d2eb 106 106 Returns a set of menu entries for tools 107 107 """ 108 id = wx.NewId()109 108 sld_help = "Provides computation related to Scattering Length density" 110 return [("SLD Calculator", sld_help, self.on_calculate_sld)] 109 slit_length_help = "Provides computation related to Scattering Length density" 110 return [("SLD Calculator", sld_help, self.on_calculate_sld), 111 ("Slit Side Calculator", slit_length_help, 112 self.on_calculate_slit_size)] 111 113 112 114 def on_calculate_sld(self, event): … … 117 119 frame = SldWindow(base=self.parent) 118 120 frame.Show(True) 119 121 122 def on_calculate_slit_size(self, event): 123 """ 124 Compute the slit size a given data 125 """ 126 from slit_length_calculator_panel import SlitLengthCalculatorWindow 127 frame = SlitLengthCalculatorWindow(parent=self.parent) 128 frame.Show(True) 120 129 121 130 def on_perspective(self, event):
Note: See TracChangeset
for help on using the changeset viewer.