Changeset b0ab6cb in sasview for calculatorview/perspectives/calculator/calculator.py
- Timestamp:
- Oct 27, 2010 4:41:30 PM (14 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:
- 6cda91f
- Parents:
- c4d6900
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/perspectives/calculator/calculator.py
r74b1770 rb0ab6cb 1 1 """ 2 Calculator Module 3 """ 2 4 ################################################################################ 3 5 #This software was developed by the University of Tennessee as part of the … … 10 12 ################################################################################ 11 13 12 import wx14 #import wx 13 15 import logging 14 16 … … 18 20 for calculator perspective 19 21 """ 20 21 22 def __init__(self, standalone=True): 22 23 """ … … 25 26 ## Plug-in name. It will appear on the application menu. 26 27 self.sub_menu = "Calculator" 27 28 #standalone flag 29 self.standalone = standalone 28 30 ## Reference to the parent window. Filled by get_panels() below. 29 31 self.parent = None … … 78 80 frame = HelpWindow(None, -1) 79 81 frame.Show(True) 80 82 evt.Skip() 83 81 84 def get_context_menu(self, graph=None): 82 85 """ … … 117 120 sld_help = "Provides computation related to Scattering Length Density" 118 121 slit_length_help = "Provides computation related to Slit Length Density" 119 data_editor_help = "Meta Data Editor"122 #data_editor_help = "Meta Data Editor" 120 123 return [("SLD Calculator", sld_help, self.on_calculate_sld), 121 124 ("Slit Size Calculator", slit_length_help, … … 130 133 """ 131 134 from data_editor import DataEditorWindow 132 frame = DataEditorWindow(parent=self.parent, data=[], title="Data Editor") 135 frame = DataEditorWindow(parent=self.parent, data=[], 136 title="Data Editor") 133 137 frame.Show(True) 138 event.Skip() 134 139 135 140 def on_calculate_kiessig(self, event): … … 140 145 frame = KiessigWindow() 141 146 frame.Show(True) 142 147 event.Skip() 143 148 144 149 def on_calculate_sld(self, event): … … 149 154 frame = SldWindow(base=self.parent) 150 155 frame.Show(True) 151 156 event.Skip() 157 152 158 def on_calculate_slit_size(self, event): 153 159 """ … … 157 163 frame = SlitLengthCalculatorWindow(parent=self.parent) 158 164 frame.Show(True) 165 event.Skip() 159 166 160 167 def on_perspective(self, event): … … 168 175 """ 169 176 self.parent.set_perspective(self.perspective) 170 171 177 event.Skip() 178 172 179 def post_init(self): 173 180 """
Note: See TracChangeset
for help on using the changeset viewer.