Changeset c4ae1c2 in sasview for inversionview
- Timestamp:
- Sep 9, 2011 2:15:01 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:
- 2f81957
- Parents:
- baf1ef3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inversionview/src/sans/perspectives/pr/inversion_panel.py
rb8ff610 rc4ae1c2 87 87 ## Default file location for save 88 88 self._default_save_location = os.getcwd() 89 if self.parent is not None: 90 self._default_save_location =\ 91 self.parent._default_save_location 92 89 93 # Default width 90 94 self._default_width = 350 … … 265 269 # Ask the user the location of the file to write to. 266 270 path = None 271 if self.parent != None: 272 self._default_save_location =\ 273 self.parent._default_save_location 267 274 dlg = wx.FileDialog(self, "Choose a file", 268 self._default_save_location, "", "*.prv", wx.SAVE) 275 self._default_save_location,\ 276 self.window_caption, "*.prv", wx.SAVE) 269 277 if dlg.ShowModal() == wx.ID_OK: 270 278 path = dlg.GetPath() 271 279 self._default_save_location = os.path.dirname(path) 280 if self.parent != None: 281 self.parent._default_save_location =\ 282 self._default_save_location 272 283 else: 273 284 return None
Note: See TracChangeset
for help on using the changeset viewer.