Changeset f21d496 in sasview for src/sas/guiframe/plugin_base.py
- Timestamp:
- Jul 2, 2015 9:13:55 AM (9 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/guiframe/plugin_base.py
r373d4ee rf21d496 34 34 """ 35 35 36 def __init__(self, name="Test_plugin" , standalone=True):36 def __init__(self, name="Test_plugin"): 37 37 """ 38 38 Abstract class for gui_manager Plugins. … … 42 42 ## Plug-in name. It will appear on the application menu. 43 43 self.sub_menu = name 44 #standalone flag45 self.standalone = standalone46 44 ## Reference to the parent window. Filled by get_panels() below. 47 45 self.parent = None … … 263 261 pass 264 262 265 def set_default_perspective(self):266 """267 Call back method that True to notify the parent that the current plug-in268 can be set as default perspective.269 when returning False, the plug-in is not candidate for an automatic270 default perspective setting271 """272 if self.standalone:273 return True274 return False275 276 263 def set_state(self, state=None, datainfo=None): 277 264 """
Note: See TracChangeset
for help on using the changeset viewer.