Changeset 1303


Ignore:
Timestamp:
Apr 25, 2014 3:06:22 PM (8 years ago)
Author:
vondreele
Message:

selection of Tutorials from the Help menu forces a SetDirectory? in FileDialog? to be GSASII/Exercises

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1297 r1303  
    349349        dlg = wx.FileDialog(self, message="Choose "+label+" input file",
    350350            defaultFile="",wildcard=choices, style=mode)
     351        if self.Tutorials:
     352            dlg.SetDirectory(os.path.join(GSASIIpath.path2GSAS2,'Exercises'))
    351353        try:
    352354            if dlg.ShowModal() == wx.ID_OK:
     
    19131915        self.StrainKey = ''         #ditto for new strain d-zeros
    19141916        self.EnablePlot = True
     1917        self.Tutorials = False      #used for changing default directory
    19151918        arg = sys.argv
    19161919        if len(arg) > 1:
  • trunk/GSASIIgrid.py

    r1299 r1303  
    20092009            print 'id=',event.GetId()
    20102010        else:
     2011            if helpType == 'Tutorials':
     2012                self.frame.Tutorials = True
    20112013            ShowHelp(helpType,self.frame)
    20122014
Note: See TracChangeset for help on using the changeset viewer.