Changeset bc2db41 in sasview for sansguiframe/src


Ignore:
Timestamp:
Apr 18, 2012 10:17:01 AM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
6605880
Parents:
da8f4c8
Message:

Fixing code style problems

File:
1 edited

Legend:

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

    r8c347a6 rbc2db41  
    1  
     1""" 
     2    Arc slicer for 2D data 
     3""" 
    24import math 
    3 import wx  
    4 from copy import deepcopy 
    55 
    66from BaseInteractor import _BaseInteractor 
    7 from sans.guiframe.events import NewPlotEvent 
    8 from sans.guiframe.events import StatusEvent 
    97from sans.guiframe.events import SlicerParameterEvent 
    10 from sans.guiframe.events import EVT_SLICER_PARS 
    11    
    128  
    139class ArcInteractor(_BaseInteractor): 
     
    4238    def set_layer(self, n): 
    4339        """ 
     40            Allow adding plot to the same panel 
     41            :param n: the number of layer 
    4442        """ 
    4543        self.layernum = n 
     
    4846    def clear(self): 
    4947        """ 
     48            Clear this slicer and its markers 
    5049        """ 
    5150        self.clear_markers() 
     
    6059    def get_radius(self): 
    6160        """ 
     61            Return arc radius 
    6262        """ 
    6363        radius = math.sqrt(math.pow(self._mouse_x, 2) + \ 
     
    6767    def update(self, theta1=None, theta2=None, nbins=None, r=None): 
    6868        """ 
     69            Update the plotted arc 
     70            :param theta1: starting angle of the arc 
     71            :param theta2: ending angle of the arc 
     72            :param nbins: number of points along the arc 
     73            :param r: radius of the arc 
    6974        """ 
    7075        # Plot inner circle 
     
    7580        if theta2 != None: 
    7681            self.theta2 = theta2 
    77         #print "ring update theta1 theta2", math.degrees(self.theta1),  
    78         #math.degrees(self.theta2) 
    7982        while self.theta2 < self.theta1: 
    8083            self.theta2 += (2 * math.pi) 
     
    111114    def moveend(self, ev): 
    112115        """ 
     116            After a dragging motion reset the flag self.has_move to False 
     117            :param ev: event 
    113118        """ 
    114119        self.has_move = False 
     
    117122        event.type = self.__class__.__name__ 
    118123        event.params = self.get_params() 
    119         #print "in arc moveend params",self.get_params() 
    120         #wx.PostEvent(self.base.base.parent, event) 
    121124        self.base.moveend(ev) 
    122125             
Note: See TracChangeset for help on using the changeset viewer.