Changeset df4c3ad in sasview
- Timestamp:
- May 12, 2009 2:43:29 PM (16 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:
- c3435b7f
- Parents:
- ddd864e
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpanel.py
r848a2ef rdf4c3ad 339 339 340 340 memento= self.fit_page_name[page_title][0] 341 print ""342 341 panel.reset_page(memento) 343 342 else: -
sansview/perspectives/fitting/fitting.py
r848a2ef rdf4c3ad 76 76 #List of selected data 77 77 self.selected_data_list=[] 78 ## list of panel with slicer 79 self.main_panel=[] 78 80 # Log startup 79 81 logging.info("Fitting plug-in started") … … 212 214 self.parent.Bind(EVT_REMOVE_DATA, self._closed_fitpage) 213 215 self.parent.Bind(EVT_SLICER_PARS_UPDATE, self._onEVT_SLICER_PANEL) 216 self.parent._mgr.Bind(wx.aui.EVT_AUI_PANE_CLOSE,self._onclearslicer) 217 214 218 215 219 #Send the fitting panel to guiframe … … 501 505 and panel_name to find the slicer 's panel concerned. 502 506 """ 507 503 508 for item in self.parent.panels: 504 if self.parent.panels[item].window_caption.startswith(event.panel_name): 509 if self.parent.panels[item].window_caption.startswith(event.panel_name): 505 510 self.parent.panels[item].set_slicer(event.type, event.params) 506 self.parent._mgr.Update() 507 break 511 512 self.parent._mgr.Update() 513 508 514 509 515 … … 831 837 if event.panel!=None: 832 838 new_panel = event.panel 833 self.main_panel= event.main_panel839 #self.main_panel.append(event.main_panel) 834 840 # Set group ID if available 835 841 event_id = self.parent.popup_panel(new_panel) … … 837 843 # "Show %s plot panel" % new_panel.window_caption) 838 844 # Set UID to allow us to reference the panel later 839 self.parent._mgr.Bind(wx.aui.EVT_AUI_PANE_CLOSE, 840 841 self._onclearslicer) 842 845 843 846 new_panel.uid = event_id 844 847 self.mypanels.append(new_panel) … … 849 852 Clear the boxslicer when close the panel associate with this slicer 850 853 """ 851 self.main_panel.onClearSlicer(event) 852 854 name =event.GetPane().caption 855 key="boxsum" 856 try: 857 if name.lower().count(key)>0: 858 toks=[] 859 toks= name.lower().split(key) 860 temp= toks[1].split() 861 panel_name= temp[0].lstrip().rstrip() 862 for item in self.parent.panels: 863 if self.parent.panels[item].window_caption.lower().startswith(panel_name): 864 if hasattr(self.parent.panels[item],"slicer"): 865 self.parent.panels[item].onClearSlicer(event) 866 self.parent._mgr.Update() 867 break 868 869 else: 870 return 871 except: 872 raise 873 return 874 875 853 876 854 877
Note: See TracChangeset
for help on using the changeset viewer.