Changeset 6137b150 in sasview for calculatorview/perspectives/calculator/aperture_editor.py
- Timestamp:
- Jun 9, 2010 4:45:37 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:
- 1b43306
- Parents:
- 16f60cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/perspectives/calculator/aperture_editor.py
rad6f597 r6137b150 21 21 def __init__(self, parent=None, manager=None,aperture=None, *args, **kwds): 22 22 """ 23 23 Dialog allows to enter values for aperture 24 24 """ 25 25 kwds['size'] =(PANEL_WIDTH, PANEL_HEIGHT) … … 37 37 def _define_structure(self): 38 38 """ 39 39 define initial sizer 40 40 """ 41 41 self.main_sizer = wx.BoxSizer(wx.VERTICAL) … … 52 52 def _layout_name(self): 53 53 """ 54 54 Do the layout for aperture name related widgets 55 55 """ 56 56 #Aperture name [string] … … 61 61 def _layout_type(self): 62 62 """ 63 63 Do the layout for aperture type related widgets 64 64 """ 65 65 #Aperture type [string] … … 71 71 def _layout_distance(self): 72 72 """ 73 73 Do the layout for aperture distance related widgets 74 74 """ 75 75 #Aperture distance [float] … … 84 84 def _layout_size_name(self): 85 85 """ 86 86 Do the layout for size name related widgets 87 87 """ 88 88 # Size name [string] … … 94 94 def _layout_size(self): 95 95 """ 96 96 Do the layout for aperture size related widgets 97 97 """ 98 98 #Aperture size [Vector] … … 118 118 def _layout_button(self): 119 119 """ 120 120 Do the layout for the button widgets 121 121 """ 122 122 self.bt_apply = wx.Button(self, -1,'Apply') … … 134 134 def _do_layout(self, data=None): 135 135 """ 136 136 Draw the current panel 137 137 """ 138 138 self._define_structure() … … 161 161 def set_manager(self, manager): 162 162 """ 163 163 Set manager of this window 164 164 """ 165 165 self.manager = manager … … 167 167 def reset_aperture(self): 168 168 """ 169 169 put the default value of the detector back to the current aperture 170 170 """ 171 171 self._aperture.name = self._reset_aperture.name … … 181 181 def set_values(self): 182 182 """ 183 184 183 take the aperture values of the current data and display them 184 through the panel 185 185 """ 186 186 aperture = self._aperture … … 204 204 def get_aperture(self): 205 205 """ 206 206 return the current aperture 207 207 """ 208 208 return self._aperture … … 210 210 def get_notes(self): 211 211 """ 212 212 return notes 213 213 """ 214 214 return self._notes … … 216 216 def on_change_name(self): 217 217 """ 218 218 Change name 219 219 """ 220 220 #Change the name of the aperture … … 229 229 def on_change_type(self): 230 230 """ 231 231 Change aperture type 232 232 """ 233 233 #Change type … … 239 239 def on_change_distance(self): 240 240 """ 241 241 Change distance of the aperture 242 242 """ 243 243 #Change distance … … 264 264 def on_change_size_name(self): 265 265 """ 266 266 Change the size's name 267 267 """ 268 268 #Change size name … … 274 274 def on_change_size(self): 275 275 """ 276 276 Change aperture size 277 277 """ 278 278 #Change x coordinate … … 330 330 def on_click_apply(self, event): 331 331 """ 332 332 Apply user values to the aperture 333 333 """ 334 334 self.on_change_name() … … 343 343 def on_click_cancel(self, event): 344 344 """ 345 345 reset the current aperture to its initial values 346 346 """ 347 347 self.reset_aperture()
Note: See TracChangeset
for help on using the changeset viewer.