Changeset 85e665e in sasview for calculatorview/perspectives/calculator
- Timestamp:
- May 4, 2010 2:31:24 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:
- c5dca87
- Parents:
- ad6f597
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/perspectives/calculator/collimation_editor.py
rad6f597 r85e665e 229 229 self.enable_collimation() 230 230 self.bt_add_aperture.Enable() 231 self.set_values() 231 232 232 233 def remove_collimation(self, event): … … 246 247 position -= 1 247 248 self.collimation_cbox.SetSelection(position) 248 249 if not self._collimation and self.collimation_cbox.GetCount() == 0: 250 self.bt_add_aperture.Disable() 251 self.name_tcl.Clear() 252 self.length_tcl.Clear() 253 self.length_unit_tcl.Clear() 254 self.aperture_cbox.Clear() 255 self.aperture_cbox.Disable() 249 256 #disable or enable the combo box when necessary 250 257 self.enable_collimation() 258 self.enable_aperture() 251 259 252 260 def enable_collimation(self): … … 266 274 self.collimation_cbox.Disable() 267 275 self.bt_remove_collimation.Disable() 268 self.bt_add_aperture.Disable()269 276 collimation_hint_txt = 'No collimation is available for this data.' 270 277 self.collimation_txt.SetLabel(collimation_hint_txt) … … 504 511 505 512 app = wx.App() 506 507 513 dlg = CollimationDialog(collimation=[Collimation()]) 508 514 dlg.ShowModal()
Note: See TracChangeset
for help on using the changeset viewer.