Ignore:
Timestamp:
Oct 27, 2010 4:41:30 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

working with pylint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/perspectives/calculator/calculator_widgets.py

    rb7e0fff rb0ab6cb  
    99""" 
    1010import wx 
    11 import os 
     11#import os 
    1212 
    1313class InputTextCtrl(wx.TextCtrl): 
     
    2020        wx.TextCtrl.__init__(self, *args, **kwds) 
    2121         
    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 
    2425        ## Call back for EVT_SET_FOCUS events 
    2526        _on_set_focus_callback = None 
     
    5253                # if not, select the whole string 
    5354                (start, end) = control.GetSelection() 
    54                 if start==end: 
    55                     control.SetSelection(-1,-1) 
     55                if start == end: 
     56                    control.SetSelection(-1, -1) 
    5657 
    5758     
Note: See TracChangeset for help on using the changeset viewer.