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


Ignore:
Timestamp:
Jul 2, 2015 11: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/plugin_base.py

    r373d4ee rf21d496  
    3434    """ 
    3535 
    36     def __init__(self, name="Test_plugin", standalone=True): 
     36    def __init__(self, name="Test_plugin"): 
    3737        """ 
    3838        Abstract class for gui_manager Plugins. 
     
    4242        ## Plug-in name. It will appear on the application menu. 
    4343        self.sub_menu = name 
    44         #standalone flag 
    45         self.standalone = standalone 
    4644        ## Reference to the parent window. Filled by get_panels() below. 
    4745        self.parent = None 
     
    263261        pass 
    264262 
    265     def set_default_perspective(self): 
    266         """ 
    267        Call back method that True to notify the parent that the current plug-in 
    268        can be set as default  perspective. 
    269        when returning False, the plug-in is not candidate for an automatic 
    270        default perspective setting 
    271         """ 
    272         if self.standalone: 
    273             return True 
    274         return False 
    275  
    276263    def set_state(self, state=None, datainfo=None):     
    277264        """ 
Note: See TracChangeset for help on using the changeset viewer.