Ignore:
Timestamp:
Apr 27, 2012 2:20:33 PM (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:
f992a06
Parents:
9e07bc4
Message:

Pep-8-ification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/hint_fitpage.py

    r49c69de rf32d144  
     1""" 
     2    This class provide general structure of  fitpanel page 
     3""" 
    14import wx 
    25from sans.guiframe.panel_base import PanelBase 
     
    69        This class provide general structure of  fitpanel page 
    710    """ 
    8      ## Internal name for the AUI manager 
     11    ## Internal name for the AUI manager 
    912    window_name = "Hint Page" 
    1013    ## Title to appear on top of the window 
     
    1316    def __init__(self, parent): 
    1417        wx.ScrolledWindow.__init__(self, parent, 
    15                  style= wx.FULL_REPAINT_ON_RESIZE) 
     18                 style = wx.FULL_REPAINT_ON_RESIZE) 
    1619        PanelBase.__init__(self, parent) 
    1720        msg = "right click on the data when it is highlighted " 
     
    2124    def do_layout(self): 
    2225        """ 
    23             Draw the page  
     26            Draw the page 
    2427        """ 
    25         name="Hint" 
    26         box_description= wx.StaticBox(self, -1,name) 
     28        name = "Hint" 
     29        box_description= wx.StaticBox(self, -1, name) 
    2730        boxsizer = wx.StaticBoxSizer(box_description, wx.VERTICAL) 
    28         msg  = "    How to link data to the control panel: \n \n" 
     31        msg = "    How to link data to the control panel: \n \n" 
    2932        msg += "    First load data file from 'File' menu. \n" 
    3033        msg += "    Then Highlight and right click on the data plot. \n" 
     
    3336        boxsizer.Add(self.hint_txt, wx.ALL|wx.EXPAND, 20) 
    3437        self.vbox = wx.BoxSizer(wx.VERTICAL) 
    35         self.vbox.Add(boxsizer ) 
     38        self.vbox.Add(boxsizer) 
    3639        self.vbox.Layout() 
    37         self.vbox.Fit(self)  
     40        self.vbox.Fit(self) 
    3841        self.SetSizer(self.vbox) 
    39         self.SetScrollbars(20,20,25,65) 
     42        self.SetScrollbars(20, 20, 25, 65) 
    4043        self.Layout() 
    4144         
    4245    def createMemento(self): 
    43         return  
     46        return 
     47         
    4448         
    4549class HelpWindow(wx.Frame): 
     
    4751        wx.Frame.__init__(self, parent, id, title, size=(570, 400)) 
    4852        
    49         self.page = HintFitPage(self)  
     53        self.page = HintFitPage(self) 
    5054        self.Centre() 
    5155        self.Show(True) 
    52   
    53 if __name__=="__main__": 
    54     app = wx.App() 
    55     HelpWindow(None, -1, 'HelpWindow') 
    56     app.MainLoop() 
    57                  
Note: See TracChangeset for help on using the changeset viewer.