Changeset 943cacb in sasview for calculatorview/perspectives
- Timestamp:
- Jan 20, 2011 8:05:18 AM (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:
- 8dc02d8b
- Parents:
- 19637b1
- Location:
- calculatorview/perspectives/calculator
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/perspectives/calculator/calculator_widgets.py
rb0ab6cb r943cacb 16 16 Binds the appropriate events for user interactions. 17 17 """ 18 def __init__(self, *args, **kwds):18 def __init__(self, parent = None, *args, **kwds): 19 19 20 wx.TextCtrl.__init__(self, *args, **kwds)20 wx.TextCtrl.__init__(self, parent, *args, **kwds) 21 21 22 22 ## Set to True when the mouse is clicked while the whole … … 28 28 self.Bind(wx.EVT_LEFT_UP, self._highlight_text) 29 29 self.Bind(wx.EVT_SET_FOCUS, self._on_set_focus) 30 self.Bind(wx.EVT_TEXT_ENTER, parent._onparamEnter ) 30 31 31 32 def _on_set_focus(self, event): -
calculatorview/perspectives/calculator/kiessig_calculator_panel.py
re696e0a r943cacb 28 28 FONT_VARIANT = 1 29 29 30 class KiessigThicknessCalculatorPanel(wx.Panel, Pan leBase):30 class KiessigThicknessCalculatorPanel(wx.Panel, PanelBase): 31 31 """ 32 32 Provides the Kiessig thickness calculator GUI. … … 183 183 output = "%-7.4g" % value 184 184 return output.lstrip().rstrip() 185 185 186 def _onparamEnter(self, event = None): 187 """ 188 On Text_enter_callback, perform compute 189 """ 190 self.on_compute(event) 191 186 192 class KiessigWindow(wx.Frame): 187 193 def __init__(self, parent=None, title="Kiessig Thickness Calculator", -
calculatorview/perspectives/calculator/resolution_calculator_panel.py
r5cc393b8 r943cacb 958 958 self.sigma_r_txt.SetLabel('Sigma_x:') 959 959 self.sigma_phi_txt.SetLabel('Sigma_y:') 960 self._onparamEnter() 960 961 961 962 def _on_rp_coordinate(self,event=None): … … 969 970 self.sigma_r_txt.SetLabel('Sigma_r: ') 970 971 self.sigma_phi_txt.SetLabel('Sigma_phi:') 972 self._onparamEnter() 971 973 972 974 def _status_info(self, msg = '', type = "update"): … … 978 980 StatusEvent(status = msg, type = type )) 979 981 980 982 983 def _onparamEnter(self, event = None): 984 """ 985 On Text_enter_callback, perform compute 986 """ 987 self.on_compute() 988 989 981 990 class ResolutionWindow(wx.Frame): 982 991 def __init__(self, parent = None, title = "SANS Resolution Estimator",
Note: See TracChangeset
for help on using the changeset viewer.