Changeset 4270 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jan 31, 2020 4:07:00 AM (3 years ago)
Author:
vondreele
Message:

set default directories to G2frame.LastGPXdir or result from GetImportPath? or GetExportPath? in most FileDialogs?
It is never None; ultimate default is '.' with a printed message - shouldn't happen
Set self.LastGPXdir to location of gpx file anytime GSAS-II reads it to start that project.
It should never be None or '.'.
Remove RMCProfile patches - shouldn't be needed now.
Make sure RMCProfile data files are local to the gpx file - required for running RMCProfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4268 r4270  
    54325432        elif event.key == 's':
    54335433            # write the function values (not peaks) onto a file
    5434             dlg = wx.FileDialog(G2frame, 'Choose CSV file to write',
     5434            dlg = wx.FileDialog(G2frame, 'Choose CSV file to write', G2G.GetExportPath(G2frame),
    54355435                    wildcard='column-separated file (*.csv)|.csv',
    54365436                    style=wx.FD_CHANGE_DIR|wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)
     
    79897989                Fname = (os.path.splitext(projFile)[0]+'.'+mode).replace('*','+')
    79907990            else:
    7991                 dlg = wx.FileDialog(G2frame, 'Choose graphics save file',
     7991                dlg = wx.FileDialog(G2frame, 'Choose graphics save file',G2G.GetExportPath(G2frame),
    79927992                    wildcard='Graphics file (*.'+mode+')|*.'+mode,style=wx.FD_OPEN| wx.FD_CHANGE_DIR)
    79937993                try:
Note: See TracChangeset for help on using the changeset viewer.