Ignore:
Timestamp:
Jun 9, 2010 4:45:37 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:
1b43306
Parents:
16f60cb
Message:

disable data editor

File:
1 edited

Legend:

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

    rad6f597 r6137b150  
    2121    def __init__(self, parent=None, manager=None,aperture=None, *args, **kwds): 
    2222        """ 
    23             Dialog allows to enter values for aperture 
     23        Dialog allows to enter values for aperture 
    2424        """ 
    2525        kwds['size'] =(PANEL_WIDTH, PANEL_HEIGHT) 
     
    3737    def _define_structure(self): 
    3838        """ 
    39             define initial sizer  
     39        define initial sizer  
    4040        """ 
    4141        self.main_sizer = wx.BoxSizer(wx.VERTICAL) 
     
    5252    def _layout_name(self): 
    5353        """ 
    54             Do the layout for aperture name related widgets 
     54        Do the layout for aperture name related widgets 
    5555        """ 
    5656        #Aperture name [string] 
     
    6161    def _layout_type(self): 
    6262        """ 
    63             Do the  layout for aperture type  related widgets 
     63        Do the  layout for aperture type  related widgets 
    6464        """ 
    6565        #Aperture type [string] 
     
    7171    def _layout_distance(self): 
    7272        """ 
    73             Do the  layout for aperture distance related widgets 
     73        Do the  layout for aperture distance related widgets 
    7474        """ 
    7575        #Aperture distance [float] 
     
    8484    def _layout_size_name(self): 
    8585        """ 
    86             Do the  layout for size name related widgets 
     86        Do the  layout for size name related widgets 
    8787        """ 
    8888        # Size name [string] 
     
    9494    def _layout_size(self): 
    9595        """ 
    96             Do the  layout for aperture size related widgets 
     96        Do the  layout for aperture size related widgets 
    9797        """ 
    9898        #Aperture size [Vector] 
     
    118118    def _layout_button(self):   
    119119        """ 
    120             Do the layout for the button widgets 
     120        Do the layout for the button widgets 
    121121        """  
    122122        self.bt_apply = wx.Button(self, -1,'Apply') 
     
    134134    def _do_layout(self, data=None): 
    135135        """ 
    136             Draw the current panel 
     136        Draw the current panel 
    137137        """ 
    138138        self._define_structure() 
     
    161161    def set_manager(self, manager): 
    162162        """     
    163             Set manager of this window 
     163        Set manager of this window 
    164164        """ 
    165165        self.manager = manager 
     
    167167    def reset_aperture(self): 
    168168        """ 
    169             put the default value of the detector back to the current aperture 
     169        put the default value of the detector back to the current aperture 
    170170        """ 
    171171        self._aperture.name = self._reset_aperture.name 
     
    181181    def set_values(self): 
    182182        """ 
    183             take the aperture values of the current data and display them 
    184             through the panel 
     183        take the aperture values of the current data and display them 
     184        through the panel 
    185185        """ 
    186186        aperture = self._aperture 
     
    204204    def get_aperture(self): 
    205205        """ 
    206             return the current aperture 
     206        return the current aperture 
    207207        """ 
    208208        return self._aperture 
     
    210210    def get_notes(self): 
    211211        """ 
    212             return notes 
     212        return notes 
    213213        """ 
    214214        return self._notes 
     
    216216    def on_change_name(self): 
    217217        """ 
    218             Change name 
     218        Change name 
    219219        """ 
    220220        #Change the name of the aperture 
     
    229229    def on_change_type(self): 
    230230        """ 
    231             Change aperture type 
     231        Change aperture type 
    232232        """ 
    233233        #Change type  
     
    239239    def on_change_distance(self): 
    240240        """ 
    241             Change distance of the aperture 
     241        Change distance of the aperture 
    242242        """ 
    243243        #Change distance 
     
    264264    def on_change_size_name(self): 
    265265        """ 
    266             Change the size's name 
     266        Change the size's name 
    267267        """ 
    268268        #Change size name 
     
    274274    def on_change_size(self): 
    275275        """ 
    276             Change aperture size 
     276        Change aperture size 
    277277        """ 
    278278        #Change x coordinate 
     
    330330    def on_click_apply(self, event): 
    331331        """ 
    332             Apply user values to the aperture 
     332        Apply user values to the aperture 
    333333        """ 
    334334        self.on_change_name() 
     
    343343    def on_click_cancel(self, event): 
    344344        """ 
    345             reset the current aperture to its initial values 
     345        reset the current aperture to its initial values 
    346346        """ 
    347347        self.reset_aperture() 
Note: See TracChangeset for help on using the changeset viewer.