Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:IDLE': 0.04; 'encoded': 0.05; 'bug.': 0.07; 'only,': 0.07; 'subject:file': 0.07; 'tkinter': 0.07; 'utf-8': 0.07; 'python': 0.09; '(its': 0.09; 'extension.': 0.09; 'files"': 0.09; 'macos': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tcl/tk': 0.09; 'files.': 0.13; 'file,': 0.15; '"python': 0.16; "'.py'": 0.16; 'menu.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Mac': 0.16; 'subject:Reading': 0.16; 'wrote:': 0.17; 'creates': 0.18; '>>>': 0.18; 'appears': 0.18; 'windows': 0.19; 'supposed': 0.21; 'default,': 0.22; 'visible': 0.22; 'runs': 0.22; 'allows': 0.25; 'header:User-Agent:1': 0.26; 'setting': 0.26; 'disk': 0.27; 'newer': 0.27; "doesn't": 0.28; 'header:X-Complaints-To:1': 0.28; 'fine': 0.28; 'cocoa': 0.29; 'dialog': 0.29; "i'm": 0.29; 'file': 0.32; 'help,': 0.32; 'idle': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'text': 0.34; 'list': 0.35; 'filter': 0.35; 'open': 0.35; 'there': 0.35; 'received:org': 0.36; 'except': 0.36; 'but': 0.36; 'anything': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'does': 0.37; 'python.org': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'sure': 0.38; 'system.': 0.39; 'to:addr:python.org': 0.39; 'little': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'link': 0.60; 'kind': 0.61; 'between': 0.63; 'show': 0.63; 'behavior': 0.64; 'choose': 0.65; 'received:204': 0.72; 'article': 0.78; '8.4': 0.84; 'received:204.14': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Deily Subject: Re: Reading a file in IDLE 3 on Mac-Lion Date: Sun, 23 Sep 2012 00:33:16 -0700 References: <505ccdc5$0$6919$e4fe514c@news2.news.xs4all.nl> <505d9cc5$0$6846$e4fe514c@news2.news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 204.14.154.191 User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 40 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348385618 news.xs4all.nl 6895 [2001:888:2000:d::a6]:43184 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29797 In article <505d9cc5$0$6846$e4fe514c@news2.news.xs4all.nl>, Hans Mulder wrote: > On 22/09/12 09:30:57, Franck Ditter wrote: > > In article <505ccdc5$0$6919$e4fe514c@news2.news.xs4all.nl>, > > Hans Mulder wrote: > >> On 21/09/12 16:29:55, Franck Ditter wrote: > >>> I create a text file utf-8 encoded in Python 3 with IDLE (Mac Lion). > >>> It runs fine and creates the disk file, visible with > >>> TextWrangler or another. > >>> But I can't open it with IDLE (its name is greyed). > >>> IDLE is supposed to read utf-8 files, no ? > >>> This works on Windows-7. > >> > >> There's a little pop-menu below the list of files. > >> > >> It allows you to choose which kind of files you want to open. > >> By default, it is set to "Python files", which greys out all > >> files, except those with a '.py' or '.pyw' extension. > >> Setting it to "Text files" should help, or else try "All files". > > Alas this pop-up menu is for Windows only, I don't > > find it on MacOS-X. > > It's there on my MacOS X 10.6.5 system. > > If your 10.7 system doesn't show it, that's definitely a bug. This appears to a difference in behavior between Carbon Tk 8.4 and Cocoa Tk 8.5 on OS X. The python.org 32-bit-only installers are built to link with the former and, with 8.4, the Open file dialog box does have the file-type filter menu as Hans describes. The python.org 64-/32-bit installers link with the newer Cocoa Tk 8.5 and, with it, the Open file dialog box does not have the filter menu. I'm not sure there is anything that IDLE or Tkinter can do about that; any change may need to be by the Tcl/Tk folks. But it would be good if you would open an issue at bugs.python.org so we can follow up on it. -- Ned Deily, nad@acm.org