Changeset c4ae1c2 in sasview for inversionview/src/sans


Ignore:
Timestamp:
Sep 9, 2011 2:15:01 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

correction: default folder for inv and pr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inversionview/src/sans/perspectives/pr/inversion_panel.py

    rb8ff610 rc4ae1c2  
    8787        ## Default file location for save 
    8888        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         
    8993        # Default width 
    9094        self._default_width = 350 
     
    265269        # Ask the user the location of the file to write to. 
    266270        path = None 
     271        if self.parent != None: 
     272            self._default_save_location =\ 
     273             self.parent._default_save_location 
    267274        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) 
    269277        if dlg.ShowModal() == wx.ID_OK: 
    270278            path = dlg.GetPath() 
    271279            self._default_save_location = os.path.dirname(path) 
     280            if self.parent != None: 
     281                self.parent._default_save_location =\ 
     282                self._default_save_location 
    272283        else: 
    273284            return None 
Note: See TracChangeset for help on using the changeset viewer.