Ignore:
Timestamp:
Jun 4, 2012 3:34:07 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
3f68e93
Parents:
da7cacb
Message:

fixing pylint warnings

Location:
sansguiframe/src/sans/guiframe/local_perspectives/plotting
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/BaseInteractor.py

    r8c347a6 r4752c31  
    135135            self.move(ev.xdata, ev.ydata, ev) 
    136136        else: 
    137             self.restore() 
     137            self.restore(ev) 
    138138        self.base.update() 
    139139        return True 
     
    147147        """ 
    148148        if ev.key == 'escape': 
    149             self.restore() 
     149            self.restore(ev) 
    150150        elif ev.key in ['up', 'down', 'right', 'left']: 
    151151            dx, dy = self.dpixel(self.clickx, self.clicky, nudge=ev.control) 
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/SectorSlicer.py

    r940aca7 r4752c31  
    495495        """ 
    496496        x = params["radius"]  
    497         self.set_cursor(x, self._inner_mouse_y) 
     497        self.set_cursor(x, None) 
    498498         
    499499 
     
    624624        """ 
    625625        x = params["radius"]  
    626         self.set_cursor(x, self._inner_mouse_y) 
    627          
     626        self.set_cursor(x, None) 
     627         
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/masking.py

    rbf7ad65 r4752c31  
    2121import sys 
    2222import time 
    23 import pylab 
     23import matplotlib.cm as cm 
    2424import math 
    2525import copy 
     
    3434(InternalEvent, EVT_INTERNAL) = wx.lib.newevent.NewEvent() 
    3535 
    36 DEFAULT_CMAP = pylab.cm.jet 
     36DEFAULT_CMAP = cm.jet 
    3737_BOX_WIDTH = 76 
    3838_SCALE = 1e-6 
     
    647647        try: 
    648648            self.plotpanel.subplot.figure.clf() 
    649             self.plotpanel.close() 
     649            self.plotpanel.Close() 
    650650        except: 
    651651            # when called by data panel 
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/plotting.py

    r940aca7 r4752c31  
    2626IS_WIN = True     
    2727if sys.platform.count("win32")==0: 
    28     if int(wx.__version__.split('.')[0]) == 2: 
    29         if int(wx.__version__.split('.')[1]) < 9: 
     28    if int(str(wx.__version__).split('.')[0]) == 2: 
     29        if int(str(wx.__version__).split('.')[1]) < 9: 
    3030            IS_WIN = False 
    3131 
Note: See TracChangeset for help on using the changeset viewer.