Changeset 4a2b054 in sasview for invariantview/perspectives/invariant/invariant_widgets.py
- Timestamp:
- Nov 22, 2010 10:36:42 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:
- 32c0841
- Parents:
- cbaa2f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_widgets.py
r4e1c362 r4a2b054 14 14 15 15 import wx 16 import os17 from invariant_state import InvariantState as IState18 import copy16 #import os 17 #from invariant_state import InvariantState as IState 18 #import copy 19 19 20 20 class InvTextCtrl(wx.TextCtrl): … … 25 25 def __init__(self, *args, **kwds): 26 26 wx.TextCtrl.__init__(self, *args, **kwds) 27 ## Set to True when the mouse is clicked while the whole string is selected 27 ## Set to True when the mouse is clicked while 28 #the whole string is selected 28 29 self.full_selection = False 29 30 ## Call back for EVT_SET_FOCUS events … … 60 61 # if not, select the whole string 61 62 (start, end) = control.GetSelection() 62 if start ==end:63 control.SetSelection(-1, -1)63 if start == end: 64 control.SetSelection(-1, -1) 64 65 65 66 66 67 67 class OutputTextCtrl(wx.TextCtrl): 68 68 """
Note: See TracChangeset
for help on using the changeset viewer.