Ignore:
Timestamp:
Sep 9, 2011 1:24:16 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:
c4ae1c2
Parents:
c553b18
Message:

remember the last folder opened/saved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/basepage.py

    rf7ef313 rbaf1ef3  
    643643        # Ask the user the location of the file to write to. 
    644644        path = None 
     645        if self.parent !=  None: 
     646            self._default_save_location = \ 
     647                        self.parent.parent._default_save_location 
    645648        dlg = wx.FileDialog(self, "Choose a file", self._default_save_location, 
    646                                                  "", "*.fitv", wx.SAVE) 
     649                                        self.window_caption, "*.fitv", wx.SAVE) 
     650 
    647651        if dlg.ShowModal() == wx.ID_OK: 
    648652            path = dlg.GetPath() 
    649653            self._default_save_location = os.path.dirname(path) 
     654            self.parent.parent._default_save_location =\ 
     655                                 self._default_save_location 
    650656        else: 
    651657            return None 
     
    13141320        """ 
    13151321        import os 
     1322        if self.parent !=  None: 
     1323            self._default_save_location = \ 
     1324                        self.parent.parent._default_save_location 
    13161325        dlg = wx.FileDialog(self, "Choose a weight file", 
    13171326                                self._default_save_location , "",  
     
    25442553            return 
    25452554        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 
    25462558 
    25472559        basename  = os.path.basename(path) 
Note: See TracChangeset for help on using the changeset viewer.