- Timestamp:
- Aug 8, 2010 3:05:44 PM (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:
- 4da35bc
- Parents:
- b35d3d1
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_loader.py
rb35d3d1 r028a0e8 172 172 # Notify user if the loader completed the load but no data came out 173 173 if output == None: 174 load_error("The data file appears to be empty.") 174 basename = os.path.basename(path) 175 if not basename.endswith('.svs'): 176 load_error("The data file appears to be empty.") 175 177 return 176 178 -
guiframe/gui_manager.py
rb35d3d1 r028a0e8 752 752 if self.panels[item].window_name == 'Invariant': 753 753 data = self.panels[item]._data 754 state = self.panels[item].state 755 new_doc =self.panels[item]._manager.state_reader.write_toXML(data,state) 756 if hasattr(doc, "firstChild"): 757 doc.firstChild.appendChild (new_doc.firstChild.firstChild) 758 else: 759 doc = new_doc 754 if data != None: 755 state = self.panels[item].state 756 new_doc =self.panels[item]._manager.state_reader.write_toXML(data,state) 757 if hasattr(doc, "firstChild"): 758 doc.firstChild.appendChild (new_doc.firstChild.firstChild) 759 else: 760 doc = new_doc 760 761 elif self.panels[item].window_name == 'pr_control': 761 762 data = self.panels[item].manager.current_plottable 762 state = self.panels[item].get_state() 763 new_doc =self.panels[item].manager.state_reader.write_toXML(data,state) 764 if hasattr(doc, "firstChild"): 765 doc.firstChild.appendChild (new_doc.firstChild.firstChild) 766 else: 767 doc = new_doc 763 if data != None: 764 state = self.panels[item].get_state() 765 new_doc =self.panels[item].manager.state_reader.write_toXML(data,state) 766 if hasattr(doc, "firstChild"): 767 doc.firstChild.appendChild (new_doc.firstChild.firstChild) 768 else: 769 doc = new_doc 768 770 elif self.panels[item].window_name == 'Fit panel': 769 771 for index in range(self.panels[item].GetPageCount()):
Note: See TracChangeset
for help on using the changeset viewer.