Changeset b0ab6cb in sasview for calculatorview/perspectives/calculator/calculator_widgets.py
- Timestamp:
- Oct 27, 2010 4:41:30 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:
- 6cda91f
- Parents:
- c4d6900
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/perspectives/calculator/calculator_widgets.py
rb7e0fff rb0ab6cb 9 9 """ 10 10 import wx 11 import os11 #import os 12 12 13 13 class InputTextCtrl(wx.TextCtrl): … … 20 20 wx.TextCtrl.__init__(self, *args, **kwds) 21 21 22 ## Set to True when the mouse is clicked while the whole string is selected 23 full_selection = False 22 ## Set to True when the mouse is clicked while the whole 23 #string is selected 24 self.full_selection = False 24 25 ## Call back for EVT_SET_FOCUS events 25 26 _on_set_focus_callback = None … … 52 53 # if not, select the whole string 53 54 (start, end) = control.GetSelection() 54 if start ==end:55 control.SetSelection(-1, -1)55 if start == end: 56 control.SetSelection(-1, -1) 56 57 57 58
Note: See TracChangeset
for help on using the changeset viewer.