[pywin32-checkins] pywin32/Pythonwin/pywin/framework help.py, 1.10, 1.11
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-05-19 13:55:04
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18456/pywin/framework Modified Files: help.py Log Message: If there is only 1 help file registered, don't bother asking which one! Index: help.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/help.py,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** help.py 2 Dec 2005 07:54:35 -0000 1.10 --- help.py 19 May 2008 13:55:01 -0000 1.11 *************** *** 99,103 **** from pywin.dialogs import list helpFiles = ListAllHelpFiles() ! index = list.SelectFromLists("Select Help file", helpFiles, ["Title"]) if index is not None: OpenHelpFile(helpFiles[index][1]) --- 99,107 ---- from pywin.dialogs import list helpFiles = ListAllHelpFiles() ! if len(helpFiles)==1: ! # only 1 help file registered - probably ours - no point asking ! index = 0 ! else: ! index = list.SelectFromLists("Select Help file", helpFiles, ["Title"]) if index is not None: OpenHelpFile(helpFiles[index][1]) |