Changeset f21d496 in sasview for src/sas/guiframe/gui_manager.py


Ignore:
Timestamp:
Jul 2, 2015 9:13:55 AM (9 years ago)
Author:
Doucet, Mathieu <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:
78f75d02
Parents:
3a5f7c8
Message:

Cleaning up old "standalone" code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/guiframe/gui_manager.py

    rf7d2f4a rf21d496  
    818818        # Load panels 
    819819        self._load_panels() 
    820         self.set_default_perspective() 
    821820 
    822821    def SetStatusText(self, *args, **kwds): 
     
    927926                        if hasattr(module, "PLUGIN_ID"): 
    928927                            try: 
    929                                 plug = module.Plugin() 
    930                                 if plug.set_default_perspective(): 
    931                                     self._current_perspective = plug 
    932                                 plugins.append(plug) 
    933  
     928                                plugins.append(module.Plugin()) 
    934929                                msg = "Found plug-in: %s" % module.PLUGIN_ID 
    935930                                logging.info(msg) 
     
    21992194                item.post_init() 
    22002195 
    2201     def set_default_perspective(self): 
    2202         """ 
    2203         Choose among the plugin the first plug-in that has 
    2204         "set_default_perspective" method and its return value is True will be 
    2205         as a default perspective when the welcome page is closed 
    2206         """ 
    2207         for item in self.plugins: 
    2208             if hasattr(item, "set_default_perspective"): 
    2209                 if item.set_default_perspective(): 
    2210                     item.on_perspective(event=None) 
    2211                     return 
    2212  
    22132196    def set_perspective(self, panels): 
    22142197        """ 
Note: See TracChangeset for help on using the changeset viewer.