Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f677f4

Browse files
committed
Reorganized order of help menu, and don't show Carbon documentation
entries on OS9 (where they are never available, and simply disabling them might lead people to think otherwise).
1 parent 25a8f0d commit 7f677f4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Mac/Tools/IDE/PythonIDEMain.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,12 @@ def makehelpmenu(self):
285285
self.helpmenu = m = self.gethelpmenu()
286286
docitem = FrameWork.MenuItem(m, "Python Documentation", None, self.domenu_localdocs)
287287
docitem.enable(docs)
288-
doc2item = FrameWork.MenuItem(m, "Apple Developer Documentation", None, self.domenu_appledocs)
289-
FrameWork.Separator(m)
290288
finditem = FrameWork.MenuItem(m, "Lookup in Python Documentation", None, 'lookuppython')
291289
finditem.enable(docs)
292-
find2item = FrameWork.MenuItem(m, "Lookup in Carbon Documentation", None, 'lookupcarbon')
290+
if runningOnOSX():
291+
FrameWork.Separator(m)
292+
doc2item = FrameWork.MenuItem(m, "Apple Developer Documentation", None, self.domenu_appledocs)
293+
find2item = FrameWork.MenuItem(m, "Lookup in Carbon Documentation", None, 'lookupcarbon')
293294
FrameWork.Separator(m)
294295
webitem = FrameWork.MenuItem(m, "Python Documentation on the Web", None, self.domenu_webdocs)
295296
web2item = FrameWork.MenuItem(m, "Python on the Web", None, self.domenu_webpython)

0 commit comments

Comments
 (0)