Bugs item #900580, was opened at 2004-02-19 14:59 Message generated for change (Comment added) made by kbk You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=900580&group_id=5470
Category: IDLE Group: Python 2.3 Status: Closed Resolution: Fixed Priority: 5 Submitted By: Jonathan Brandmeyer (jbrandmeyer) Assigned to: Kurt B. Kaiser (kbk) Summary: IDLE docs broken on OSX Initial Comment: Under Apple's OSX operating system, the variable sys.platform is named'darwin'. In at least one place, idle makes a test to see if thecurrent platform is MS Windows by checking for the substring 'win' insys.platform, which leads to incorrect behavior on the Mac. In particular, in lib/python2.3/idlelib/EditorWindow.py, member function EditorWindow.python_docs() behaves incorrectly on OS X. I believe that if the test for MS Windows is completely removed that you will get correct behavior on all platforms, based on my reading of the webbrowser module source. Please change that function to the following (near line 313): >>> def python_docs(self, event=None): >>> webbrowser.open(self.help_url) >>> return "break" ---------------------------------------------------------------------- >Comment By: Kurt B. Kaiser (kbk) Date: 2005-01-18 23:25 Message: Logged In: YES user_id=149084 Backported to 2.3.5 ---------------------------------------------------------------------- Comment By: Kurt B. Kaiser (kbk) Date: 2004-07-15 00:01 Message: Logged In: YES user_id=149084 EditorWindow.py 1.60 configHelpSourceEdit.py 1.7 Backport candidate. Please test on Mac. ---------------------------------------------------------------------- Comment By: Jonathan Brandmeyer (jbrandmeyer) Date: 2004-03-02 14:06 Message: Logged In: YES user_id=676765 There are a series of changes related to the one I mentioned before. In addition, Safari requires the full URI to local files when started via the webbrowser module (or via several other methods) even though it automatically prepends that string when entered in the address bar. So, I have an additional patch that makes appropriate modifications for file:/// prefixed paths. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=900580&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com