Changeset 5480


Ignore:
Timestamp:
Jan 25, 2023 7:25:06 PM (10 months ago)
Author:
toby
Message:

grey out update menu items w/o write access to installation directory; document help menu in help file.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r5471 r5480  
    54185418            helpobj = self.Append(wx.ID_ANY,'&Check for updates\tCtrl+U',
    54195419                    'Updates to latest GSAS-II version')
    5420             frame.Bind(wx.EVT_MENU, self.OnCheckUpdates, helpobj)
     5420            if os.access(GSASIIpath.path2GSAS2, os.W_OK):
     5421                frame.Bind(wx.EVT_MENU, self.OnCheckUpdates, helpobj)
     5422            else:
     5423                helpobj.Enable(False)
    54215424            helpobj = self.Append(wx.ID_ANY,'&Regress to old GSAS-II version',
    54225425                    'Installs previous GSAS-II version')
    5423             frame.Bind(wx.EVT_MENU, self.OnSelectVersion, helpobj)
    5424             # if GSASIIpath.svnTestBranch():
    5425             #     msg = "&Switch back to standard GSAS-II version"
    5426             # else:
    5427             #     msg = "&Switch to test (2frame) GSAS-II version"
    5428             # helpobj = self.Append(
    5429             #     help='', id=wx.ID_ANY, kind=wx.ITEM_NORMAL,text=msg)
    5430             # frame.Bind(wx.EVT_MENU, self.OnSelectBranch, helpobj)
     5426            if os.access(GSASIIpath.path2GSAS2, os.W_OK):
     5427                frame.Bind(wx.EVT_MENU, self.OnSelectVersion, helpobj)
     5428            else:
     5429                helpobj.Enable(False)
    54315430        # provide special help topic names for extra items in help menu
    54325431        for lbl,indx in morehelpitems:
     
    54375436        self.AppendSeparator()
    54385437        if includeTree:
    5439             helpobj = self.Append(wx.ID_ANY,'Help on Data tree',
    5440                 'Web page on GSAS-II data structure')
     5438            helpobj = self.Append(wx.ID_ANY,'Help on GSAS-II',
     5439                'Access web page with information on GSAS-II')
    54415440            frame.Bind(wx.EVT_MENU, self.OnHelpById, id=helpobj.GetId())
    54425441            self.HelpById[helpobj.GetId()] = 'Data tree'
    54435442        helpobj = self.Append(wx.ID_ANY,'Help on current data tree item\tF1',
    5444                 'Web page on selected item in tree')
     5443                'Access web page on selected item in tree')
    54455444        frame.Bind(wx.EVT_MENU, self.OnHelpById, id=helpobj.GetId())
    54465445       
  • trunk/help/gsasII.html

    r5344 r5480  
    67986798</div>
    67996799
    6800 <p class=MsoNormal style='margin-left:.75in'><span style='color:white;
    6801 mso-color-alt:windowtext'>If you use this, please cite M.H. Mendenhall, K.
     6800<p class=MsoNormal style='margin-left:.75in'>
     6801If you use this, please cite M.H. Mendenhall, K.
    68026802Mullen &amp; J.P. Cline (2015), </span><i>J. Res. of NIST</i>, <b>120</b>,
    6803 p223. DOI: 10.6028/jres.120.014. If the incident beam monochromator model is
     6803p223.
     6804<A HREF="https://doi.org/10.6028/jres.120.014">
     6805DOI: 10.6028/jres.120.014.</A>
     6806If the incident beam monochromator model is
    68046807used, please also cite: M.H. Mendenhall, D. Black &amp; J.P. Cline (2019), <i>J.
    6805 Appl. Cryst.</i>, <b>52</b>, p1087. DOI: 10.1107/S1600576719010951. </p>
     6808Appl. Cryst.</i>, <b>52</b>, p1087.
     6809<A HREF="https://doi.org/10.1107/S1600576719010951">
     6810DOI: 10.1107/S1600576719010951.</A> </p>
    68066811
    68076812<p class=MsoNormal style='margin-left:.75in'><span style='mso-fareast-font-family:
     
    70047009data; a header on each indicated the source file name and the column headings.
    70057010The file name comes from the PDF entry in the GSAS-II data tree. </p>
     7011
     7012<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in;mso-add-space:
     7013auto;text-indent:-.25in;mso-list:l16 level1 lfo2;tab-stops:list .25in'><![if !supportLists]><span
     7014style='mso-list:Ignore'>6.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     7015</span></span><![endif]><b>Help</b> Menu<span style='mso-fareast-font-family:
     7016"Times New Roman";mso-fareast-theme-font:minor-fareast'><o:p></o:p></span></p>
     7017
     7018<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in;mso-add-space:
     7019auto'>The help menu allows for updating or selecting a GSAS-II
     7020version, access to GSAS-II tutorials, or access to documentation on
     7021GSAS-II.
     7022<UL>
     7023<LI>
     7024  <b>Check for updates</b>
     7025  This accesses the internet to see if a newer version of GSAS-II is
     7026  available for download. This will appear as inactive (greyed out) if
     7027  you do not have write access to the directory where GSAS-II is
     7028  installed and will not appear in the menu if the subversion (svn)
     7029  program needed to make updates is not found.
     7030 
     7031<LI>
     7032  <b>Regress to old GSAS-II version</b>
     7033  This allows the GSAS-II version to be set to an older version. One
     7034  might want to do this to confirm that the result obtained previously
     7035  is reproduced in the latest code or to avoid a bug that has
     7036  inadvertently been introduced. Please note that if there is a reason
     7037  why you feel that an older GSAS-II version does something better than
     7038  the latest version, please get in touch with the software authors
     7039  (use of the mailing list, see
     7040  <A href="https://subversion.xray.aps.anl.gov/trac/pyGSAS#MailingList">
     7041  https://subversion.xray.aps.anl.gov/trac/pyGSAS#MailingList</A>) is
     7042  a good way to do this.) Bugs are usually not addressed unless
     7043  reported and if "improvements" are problematic we want to know this. 
     7044  This will appear as inactive (greyed out) if
     7045  you do not have write access to the directory where GSAS-II is
     7046  installed and will not appear in the menu if the subversion (svn)
     7047  program needed to make updates is not found.   
     7048
     7049<LI>
     7050  <b>Tutorials</b>
     7051  GSAS-II offers more than 50 tutorials on different aspects of the
     7052  program. If this menu command is used, one can view a tutorial,
     7053  optionally downloading it and the input files needed to run the
     7054  tutorial.
     7055
     7056<LI>
     7057  <b>Help on GSAS-II</b> Opens this file, with GSAS-II documentation,
     7058  in a browser.
     7059 
     7060<LI>
     7061  <b>Help on current data tree item</b>
     7062  Opens the GSAS-II documentation to the code section describing the
     7063  last selected item in the Data Tree.
     7064</UL>
    70067065
    70077066<div class=MsoNormal align=center style='text-align:center'><span
     
    1173811797</span></div>
    1173911798
    11740 <p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><!-- hhmts start --><span
    11741 style='color:#4A4A4A'>Last modified: Wed Jul 27 14:40:38 CDT 2022 <o:p></o:p></span></p>
    11742 
    11743 </div>
    11744 
    11745 <!-- hhmts end -->
     11799<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><!-- hhmts start -->Last modified: Wed Jan 25 20:20:57 CST 2023 <!-- hhmts end -->
    1174611800</body>
    1174711801
Note: See TracChangeset for help on using the changeset viewer.