Changeset b7e0fff in sasview for calculatorview/perspectives
- Timestamp:
- Mar 30, 2010 3:07:42 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:
- 9bd6c13c
- Parents:
- 328c328
- Location:
- calculatorview/perspectives/calculator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/perspectives/calculator/calculator_widgets.py
r378d2eb rb7e0fff 55 55 control.SetSelection(-1,-1) 56 56 57 class OutputTextCtrl(wx.TextCtrl): 57 58 class InterActiveOutputTextCtrl(wx.TextCtrl): 58 59 """ 59 60 Text control used to display outputs. … … 63 64 def __init__(self, *args, **kwds): 64 65 wx.TextCtrl.__init__(self, *args, **kwds) 66 self.SetEditable(False) 67 self.SetBackgroundColour(self.GetParent().GetBackgroundColour()) 68 69 class OutputTextCtrl(InterActiveOutputTextCtrl): 70 """ 71 Text control used to display outputs. 72 No editing allowed. The background is 73 grayed out. User can't select text. 74 """ 75 def __init__(self, *args, **kwds): 76 InterActiveOutputTextCtrl.__init__(self, *args, **kwds) 65 77 self.SetEditable(False) 66 78 self.SetBackgroundColour(self.GetParent().GetBackgroundColour()) … … 77 89 """ 78 90 pass 79 91 92 -
calculatorview/perspectives/calculator/slit_length_calculator_panel.py
r328c328 rb7e0fff 16 16 from sans.guicomm.events import StatusEvent 17 17 from sans.calculator.slit_length_calculator import SlitlengthCalculator 18 from calculator_widgets import OutputTextCtrl 18 from calculator_widgets import OutputTextCtrl, InterActiveOutputTextCtrl 19 19 20 20 _BOX_WIDTH = 76 … … 28 28 PANEL_HEIGHT = 230 29 29 FONT_VARIANT = 1 30 31 30 32 31 class SlitLengthCalculatorPanel(wx.Panel): 33 32 """ … … 88 87 """ 89 88 slit_size_txt = wx.StaticText(self, -1, 'Full Slit Size: ') 90 self.slit_size_tcl = OutputTextCtrl(self, -1, size=(_BOX_WIDTH,-1))89 self.slit_size_tcl = InterActiveOutputTextCtrl(self, -1, size=(_BOX_WIDTH,-1)) 91 90 slit_size_hint = " Estimated full slit size" 92 91 self.slit_size_tcl.SetToolTipString(slit_size_hint)
Note: See TracChangeset
for help on using the changeset viewer.