Changeset 824e488 in sasview for src/sas/perspectives


Ignore:
Timestamp:
Mar 5, 2015 2:18:47 PM (10 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:
b5de88e
Parents:
b9dbd6b
Message:

pylint fixes and remove old code

Location:
src/sas/perspectives
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/perspectives/calculator/gen_scatter_panel.py

    r49ab5d7 r824e488  
    20362036        self.Destroy() 
    20372037 
    2038 #    def on_help(self, event):     
    2039 #        """ 
    2040 #       Gen scatter angle help panel 
    2041 #        """ 
    2042 #        from sas.perspectives.calculator.help_panel import  HelpWindow 
    2043 #        # Get models help model_function path 
    2044 #        import sas.perspectives.calculator as calmedia 
    2045 # 
    2046 #        media = calmedia.get_data_path(media='media') 
    2047 #        path = os.path.join(media,"gen_sas_help.html")  
    2048 #        name = "Generic Scattering Calculator" 
    2049 #        frame = HelpWindow(self, -1,  
    2050 #                           title=' Help: GenSAS',   
    2051 #                           pageToOpen=path, size=(865, 450))    
    2052 #        try:  
    2053 #            frame.splitter.DetachWindow(frame.lpanel) 
    2054 #            # Display only the right side one 
    2055 #            frame.lpanel.Hide()  
    2056 #            frame.Show(True) 
    2057 #            add_icon(self.parent, frame) 
    2058 #        except: 
    2059 #            frame.Destroy()  
    2060 #            msg = 'Display Error\n' 
    2061 #            info = "Info" 
    2062 #            wx.MessageBox(msg, info) 
    2063  
    20642038if __name__ == "__main__": 
    20652039    app = wx.PySimpleApp() 
  • src/sas/perspectives/fitting/fitting.py

    r2f4b430 r824e488  
    424424        else: 
    425425            self.batch_page = self.fit_panel.add_sim_page(caption=caption) 
    426  
    427     def help(self, evt): 
    428         """ 
    429         Show a general help dialog. 
    430         """ 
    431         from help_panel import  HelpWindow 
    432         frame = HelpWindow(None, -1, 'HelpWindow') 
    433         if hasattr(frame, "IsIconized"): 
    434             if not frame.IsIconized(): 
    435                 try: 
    436                     icon = self.parent.GetIcon() 
    437                     frame.SetIcon(icon) 
    438                 except: 
    439                     pass 
    440         frame.Show(True) 
    441426 
    442427    def get_context_menu(self, plotpanel=None): 
  • src/sas/perspectives/invariant/invariant.py

    r78a205a r824e488  
    4747        # Log startup 
    4848        logging.info("Invariant plug-in started") 
    49  
    50     def help(self, evt): 
    51         """ 
    52         Show a general help dialog. 
    53         """ 
    54         from help_panel import  HelpWindow 
    55         frame = HelpWindow(None, -1) 
    56         if hasattr(frame, "IsIconized"): 
    57             if not frame.IsIconized(): 
    58                 try: 
    59                     icon = self.parent.GetIcon() 
    60                     frame.SetIcon(icon) 
    61                 except: 
    62                     logging.error(sys.exc_value) 
    63         frame.Show(True) 
    6449 
    6550    def get_data(self): 
Note: See TracChangeset for help on using the changeset viewer.