Changeset baf1ef3 in sasview for fittingview/src
- Timestamp:
- Sep 9, 2011 1:24:16 PM (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:
- c4ae1c2
- Parents:
- c553b18
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/basepage.py
rf7ef313 rbaf1ef3 643 643 # Ask the user the location of the file to write to. 644 644 path = None 645 if self.parent != None: 646 self._default_save_location = \ 647 self.parent.parent._default_save_location 645 648 dlg = wx.FileDialog(self, "Choose a file", self._default_save_location, 646 "", "*.fitv", wx.SAVE) 649 self.window_caption, "*.fitv", wx.SAVE) 650 647 651 if dlg.ShowModal() == wx.ID_OK: 648 652 path = dlg.GetPath() 649 653 self._default_save_location = os.path.dirname(path) 654 self.parent.parent._default_save_location =\ 655 self._default_save_location 650 656 else: 651 657 return None … … 1314 1320 """ 1315 1321 import os 1322 if self.parent != None: 1323 self._default_save_location = \ 1324 self.parent.parent._default_save_location 1316 1325 dlg = wx.FileDialog(self, "Choose a weight file", 1317 1326 self._default_save_location , "", … … 2544 2553 return 2545 2554 self._default_save_location = os.path.dirname(path) 2555 if self.parent != None: 2556 self.parent.parent._default_save_location =\ 2557 self._default_save_location 2546 2558 2547 2559 basename = os.path.basename(path)
Note: See TracChangeset
for help on using the changeset viewer.