Changeset 4031 for trunk/GSASIIimgGUI.py


Ignore:
Timestamp:
Jun 18, 2019 6:21:39 PM (3 years ago)
Author:
toby
Message:

introduce external autoInt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r4009 r4031  
    13201320        G2frame.autoIntFrame.Bind(wx.EVT_WINDOW_DESTROY,OnDestroy) # clean up name on window close
    13211321    G2frame.Bind(wx.EVT_MENU, OnAutoInt, id=G2G.wxID_IMAUTOINTEG)
     1322    def OnIntPDFtool(event):
     1323        import subprocess
     1324        ex = sys.executable
     1325        if sys.platform == "darwin": # mac requires pythonw which is not always reported as sys.executable
     1326            if os.path.exists(ex+'w'): ex += 'w'
     1327        if G2frame.GSASprojectfile:
     1328            project = os.path.abspath(G2frame.GSASprojectfile)
     1329        else:
     1330            project = ''
     1331        subprocess.Popen([ex,os.path.join(GSASIIpath.path2GSAS2,'GSASIIIntPDFtool.py'),project])
     1332    G2frame.Bind(wx.EVT_MENU, OnIntPDFtool, id=G2G.wxID_IMINTEGPDFTOOL)
    13221333
    13231334    mainSizer = G2frame.dataWindow.GetSizer()
     
    32133224        :returns: a list with 3 items:
    32143225
    3215           * a dict with parameter values,
     3226          * a dict with interpolated parameter values,
    32163227          * the closest imctrl and
    32173228          * the closest maskfile (or None)
     
    34443455    def FillList(self,parms):
    34453456        'Places the current parms into the table'
     3457        # the use of InsertStringItem and SetStringItem are depricated in 4.0 but
     3458        # I am not quite sure how to replace them with InsertItem and SetItem yet.
     3459        # Perhaps switch to  ULC.UltimateListCtrl?
     3460        #
    34463461        maxint = 2**31-1
    34473462        self.ClearAll()
Note: See TracChangeset for help on using the changeset viewer.