Changeset 168a845 in sasview
- Timestamp:
- Apr 26, 2011 10:41:50 AM (14 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:
- 23ccf07
- Parents:
- 34b9813
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r4bee68d r168a845 213 213 self.panels[ID].on_kill_focus(None) 214 214 215 if self._data_panel is not None: 215 if self._data_panel is not None and \ 216 self.panel_on_focus is not None: 216 217 panel_name = self.panel_on_focus.window_caption 217 218 ID = self.panel_on_focus.uid … … 1213 1214 plug.clear_panel() 1214 1215 if self.defaultPanel != None: 1215 default_panel = self.panels['default'] 1216 self.panels = {'default': default_panel} 1216 self.panels = {'default': self.defaultPanel} 1217 1217 else: 1218 1218 #self.clear_panel() 1219 1219 self.panels = {} 1220 1220 self._data_panel.clear_panel() 1221 1221 self.plot_panels = {} 1222 1222 self.panel_on_focus = None -
guiframe/local_perspectives/plotting/plotting.py
r4bee68d r168a845 94 94 def clear_panel(self): 95 95 """ 96 Clear and Hide all plot panels 96 Clear and Hide all plot panels, and remove them from menu 97 97 """ 98 98 for group_id in self.plot_panels.keys(): … … 100 100 panel.graph.reset() 101 101 self.hide_panel(group_id) 102 self.plot_panels = {} 102 self.plot_panels = {} 103 item = self.menu.FindItemByPosition(0) 104 while item != None: 105 self.menu.DeleteItem(item) 106 try: 107 item = self.menu.FindItemByPosition(0) 108 except: 109 item = None 110 103 111 104 112 def clear_panel_by_id(self, group_id):
Note: See TracChangeset
for help on using the changeset viewer.