Changeset 1719 for trunk/GSASIIctrls.py


Ignore:
Timestamp:
Mar 16, 2015 4:20:06 PM (7 years ago)
Author:
toby
Message:

implement default starting and import directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrls.py

    r1709 r1719  
    14861486            print 'id=',event.GetId()
    14871487        elif helpType == 'OldTutorials': # this will go away
    1488             self.frame.Tutorials = True
     1488            #self.frame.Tutorials = True
    14891489            ShowHelp(helpType,self.frame)
    14901490        elif helpType == 'Tutorials':
    14911491            dlg = OpenTutorial(self.frame)
    1492             if dlg.ShowModal() == wx.ID_OK:
    1493                 self.frame.Tutorials = True
     1492            dlg.ShowModal()
     1493            #if dlg.ShowModal() == wx.ID_OK:
     1494                #self.frame.Tutorials = True
    14941495            dlg.Destroy()
    14951496            return
     
    21512152            URL = os.path.join(tutorialPath,'help',tutdir,htmlname)
    21522153            ShowWebPage(URL,self.frame)
     2154            self.frame.ImportDir = os.path.join(tutorialPath,'Exercises',exedir)
    21532155        elif self.BrowseMode == 1:
    21542156            # xfer data locally, open web page remotely
     
    21562158            URL = os.path.join(G2BaseURL,'Tutorials',tutdir,htmlname)
    21572159            ShowWebPage(URL,self.frame)
     2160            self.frame.ImportDir = os.path.join(tutorialPath,'Exercises',exedir)
    21582161        elif self.BrowseMode == 2:
    21592162            # open web page remotely, don't worry about data
    21602163            URL = os.path.join(G2BaseURL,'Tutorials',tutdir,htmlname)
    21612164            ShowWebPage(URL,self.frame)
     2165            self.frame.ImportDir = os.path.join(tutorialPath,'Exercises',exedir)
    21622166        elif self.BrowseMode == 3:
    21632167            # open web page that has already been transferred
Note: See TracChangeset for help on using the changeset viewer.