Changeset f21d496 in sasview for src/sas/guiframe/gui_manager.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/gui_manager.py
rf7d2f4a rf21d496 818 818 # Load panels 819 819 self._load_panels() 820 self.set_default_perspective()821 820 822 821 def SetStatusText(self, *args, **kwds): … … 927 926 if hasattr(module, "PLUGIN_ID"): 928 927 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()) 934 929 msg = "Found plug-in: %s" % module.PLUGIN_ID 935 930 logging.info(msg) … … 2199 2194 item.post_init() 2200 2195 2201 def set_default_perspective(self):2202 """2203 Choose among the plugin the first plug-in that has2204 "set_default_perspective" method and its return value is True will be2205 as a default perspective when the welcome page is closed2206 """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 return2212 2213 2196 def set_perspective(self, panels): 2214 2197 """
Note: See TracChangeset
for help on using the changeset viewer.