Changeset 44148f0 in sasview for calculatorview/perspectives


Ignore:
Timestamp:
Nov 2, 2010 9:34:47 AM (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:
a7a5886
Parents:
96c0234
Message:

working on pylint

Location:
calculatorview/perspectives/calculator
Files:
4 edited

Legend:

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

    rb0ab6cb r44148f0  
    145145        frame = KiessigWindow() 
    146146        frame.Show(True)  
    147         event.Skip() 
    148         
     147     
    149148    def on_calculate_sld(self, event): 
    150149        """ 
     
    154153        frame = SldWindow(base=self.parent) 
    155154        frame.Show(True)  
    156         event.Skip() 
    157          
     155        
    158156    def on_calculate_slit_size(self, event): 
    159157        """ 
     
    163161        frame = SlitLengthCalculatorWindow(parent=self.parent)     
    164162        frame.Show(True) 
    165         event.Skip() 
    166          
     163    
    167164    def on_perspective(self, event): 
    168165        """ 
  • calculatorview/perspectives/calculator/kiessig_calculator_panel.py

    rb0ab6cb r44148f0  
    185185      
    186186class KiessigWindow(wx.Frame): 
    187     def __init__(self, parent=None, title="Kiessig Thickness Calculator"): 
    188         wx.Frame.__init__(self, parent, title, 
    189                            size=(PANEL_WIDTH,PANEL_HEIGHT)) 
     187    def __init__(self, parent=None, title="Kiessig Thickness Calculator", 
     188                  size=(PANEL_WIDTH,PANEL_HEIGHT), *args, **kwds): 
     189        kwds['title'] = title 
     190        kwds['size'] = size 
     191        wx.Frame.__init__(self, parent, *args, **kwds) 
    190192        self.parent = parent 
    191193        self.panel = KiessigThicknessCalculatorPanel(parent=self) 
  • calculatorview/perspectives/calculator/sld_panel.py

    rb0ab6cb r44148f0  
    4646    CENTER_PANE = True 
    4747     
    48     def __init__(self, parent, base=None): 
    49         """ 
    50         """ 
    51         wx.Panel.__init__(self, parent) 
     48    def __init__(self, parent, base=None, *args, **kwds): 
     49        """ 
     50        """ 
     51        wx.Panel.__init__(self, parent, *args, **kwds) 
    5252        #Font size  
    5353        self.SetWindowVariant(variant=FONT_VARIANT) 
     
    415415    """ 
    416416    """ 
    417     def __init__(self, parent=None, title="SLD Calculator", base=None): 
    418         """ 
    419         """ 
    420         wx.Frame.__init__(self, parent, title, 
    421                            size=(PANEL_SIZE, PANEL_SIZE)) 
     417    def __init__(self, parent=None, title="SLD Calculator", 
     418                  base=None, size=(PANEL_SIZE, PANEL_SIZE), *args, **kwds): 
     419        """ 
     420        """ 
     421        kwds['title'] = title 
     422        kwds['size'] = size 
     423        wx.Frame.__init__(self, parent, *args, **kwds) 
    422424        """ 
    423425        """ 
     
    432434        """ 
    433435        """ 
    434         frame = SldWindow(None, -1, 'SLD Calculator')     
     436        frame = SldWindow(None, title='SLD Calculator')     
    435437        frame.Show(True) 
    436438        self.SetTopWindow(frame) 
  • calculatorview/perspectives/calculator/slit_length_calculator_panel.py

    rb0ab6cb r44148f0  
    238238    """ 
    239239    """ 
    240     def __init__(self, parent=None, title="Slit Size Calculator"): 
    241         """ 
    242         """ 
    243         wx.Frame.__init__(self, parent, title, 
    244                            size=(PANEL_WIDTH,PANEL_HEIGHT)) 
     240    def __init__(self, parent=None, title="Slit Size Calculator", 
     241                size=(PANEL_WIDTH,PANEL_HEIGHT), *args, **kwds): 
     242        """ 
     243        """ 
     244        kwds['size']= size 
     245        kwds['title']= title 
     246        wx.Frame.__init__(self, parent, *args, **kwds) 
    245247        self.parent = parent 
    246248        self.panel = SlitLengthCalculatorPanel(parent=self) 
Note: See TracChangeset for help on using the changeset viewer.