Changeset c553b18 in sasview for sansguiframe/src
- Timestamp:
- Sep 9, 2011 11:21:48 AM (13 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:
- baf1ef3
- Parents:
- 8dcc4539
- Location:
- sansguiframe/src/sans/guiframe
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
redcb00bd rc553b18 1571 1571 error_message += str(sys.exc_value) + "\n" 1572 1572 print error_message 1573 print "_default_save_location", self._default_save_location1573 1574 1574 def load_folder(self, path): 1575 1575 """ … … 1678 1678 """ 1679 1679 ## Default file location for save 1680 self._default_save_location = os.getcwd()1680 #self._default_save_location = os.getcwd() 1681 1681 if self._current_perspective is None: 1682 1682 return -
sansguiframe/src/sans/guiframe/local_perspectives/data_loader/data_loader.py
rd72ef56 rc553b18 83 83 """ 84 84 path = None 85 self._default_save_location = self.parent._default_save_location 85 86 if self._default_save_location == None: 86 87 self._default_save_location = os.getcwd() … … 123 124 """ 124 125 path = None 126 self._default_save_location = self.parent._default_save_location 125 127 if self._default_save_location == None: 126 128 self._default_save_location = os.getcwd() -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py
r36288ca rc553b18 80 80 self.x_size = None 81 81 ## Default locations 82 self._default_save_location = os.getcwd()82 #self._default_save_location = os.getcwd() 83 83 self.size = None 84 84 ## Graph … … 620 620 try: 621 621 self._default_save_location = os.path.dirname(path) 622 self.parent._default_save_location = self._default_save_location 622 623 except: 623 624 pass … … 633 634 path = None 634 635 wildcard = "Text files (*.txt)|*.txt|"\ 635 "CanSAS 1D files(*.xml)|*.xml" 636 "CanSAS 1D files(*.xml)|*.xml" 637 default_name = self.plots[self.graph.selected_plottable].label 638 if default_name.count('.') > 0: 639 default_name = default_name.split('.')[0] 640 default_name += "_out" 641 if self.parent != None: 642 self._default_save_location = self.parent._default_save_location 636 643 dlg = wx.FileDialog(self, "Choose a file", 637 644 self._default_save_location, 638 "", wildcard , wx.SAVE)645 default_name, wildcard , wx.SAVE) 639 646 640 647 if dlg.ShowModal() == wx.ID_OK: … … 673 680 try: 674 681 self._default_save_location = os.path.dirname(path) 682 self.parent._default_save_location = self._default_save_location 675 683 except: 676 684 pass -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter2D.py
r36288ca rc553b18 746 746 """ 747 747 id = str(evt.GetId()) 748 if self.parent != None: 749 self._default_save_location = self.parent._default_save_location 748 750 if id in self.action_ids: 749 751 … … 784 786 try: 785 787 self._default_save_location = os.path.dirname(path) 788 self.parent._default_save_location = \ 789 self._default_save_location 786 790 except: 787 791 pass
Note: See TracChangeset
for help on using the changeset viewer.