Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!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; '(using': 0.05; 'subject:Python': 0.06; 'definitions': 0.07; 'skip:[ 40': 0.07; 'skip:[ 50': 0.07; 'python': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'skip:[ 30': 0.09; 'there?': 0.09; 'skip:[ 20': 0.12; 'entries': 0.15; '"windows': 0.16; '2.7.2': 0.16; 'advanced,': 0.16; 'around,': 0.16; 'bieber': 0.16; 'cares': 0.16; 'declaimed': 0.16; 'email addr:ix.netcom.com': 0.16; 'email name:wlfraed': 0.16; 'exe': 0.16; 'file"': 0.16; 'from:addr:ix.netcom.com': 0.16; 'from:addr:wlfraed': 0.16; 'from:name:dennis lee bieber': 0.16; 'idle"': 0.16; 'invoking': 0.16; 'listed,': 0.16; 'out"': 0.16; 'python.exe': 0.16; 'received:66.245': 0.16; 'received:dsl.mindspring.com': 0.16; 'received:wlfraed': 0.16; 'skip:\\ 40': 0.16; 'skipped': 0.16; 'url:netcom': 0.16; 'url:wlfraed': 0.16; 'used...': 0.16; 'win7': 0.16; 'wulfraed': 0.16; 'appears': 0.20; 'suggest': 0.20; 'trying': 0.21; 'url:home': 0.21; 'wonder': 0.23; '(just': 0.23; 'items.': 0.23; 'performs': 0.23; 'windows': 0.26; 'separate': 0.28; 'lee': 0.28; 'skip:" 30': 0.28; 'script': 0.28; 'idle': 0.28; 'installing': 0.28; 'unknown': 0.28; 'definition': 0.30; 'actions.': 0.30; 'email name:': 0.30; 'subject:same': 0.30; 'example': 0.30; 'nov': 0.31; 'correct': 0.31; 'version': 0.31; 'point,': 0.32; 'actual': 0.32; 'does': 0.32; "isn't": 0.32; 'to:addr:python-list': 0.32; 'actually': 0.33; "i've": 0.33; 'it.': 0.33; 'there': 0.33; 'match': 0.33; 'header:X-Complaints- To:1': 0.33; 'file.': 0.34; 'shows': 0.34; 'duplicate': 0.34; 'leaves': 0.34; 'skip:@ 10': 0.34; 'skip:" 20': 0.35; 'file': 0.36; 'fri,': 0.36; 'example,': 0.36; 'charset:us-ascii': 0.36; 'doing': 0.37; 'machine': 0.37; 'using': 0.37; 'received:org': 0.37; 'menu': 0.38; 'open': 0.38; 'run': 0.38; 'listed': 0.38; 'ok,': 0.38; "i'd": 0.39; 'should': 0.39; "there's": 0.39; 'why': 0.39; 'description': 0.39; 'subject:: ': 0.39; 'under': 0.39; 'hit': 0.39; 'change': 0.39; 'to:addr:python.org': 0.39; 'files': 0.40; 'did': 0.40; 'more': 0.60; 'your': 0.61; "we've": 0.62; '2011': 0.62; 'premium': 0.64; 'home': 0.66; 'show': 0.67; 'relevant': 0.67; 'dennis': 0.77; 'click': 0.80; '(export': 0.84; 'action:': 0.84; 'associations': 0.84; 'contrast,': 0.84; 'each,': 0.84; 'messed': 0.84; 'neither.': 0.84; 'only}': 0.84; 'actions,': 0.91; '5.00': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7 Date: Fri, 18 Nov 2011 10:04:59 -0800 Organization: > Bestiaria Support Staff < References: <4ec5a5cf$0$29967$c3e8da3$5496439d@news.astraweb.com> <9in3r9F5j3U2@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: user-11fb5l5.dsl.mindspring.com X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 181 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1321639508 news.xs4all.nl 6958 [2001:888:2000:d::a6]:54814 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15913 On Fri, 18 Nov 2011 07:29:56 -0800, "W. eWatson" declaimed the following in gmane.comp.python.general: > OK, I've found that. I see > Py > Pyc > Pyo > Pyw > If I click on each, it basically it gives a short description of each. > If I click advanced, there's more info. For example for py, Actions are > IDLE and Open. > > What does this tell me that's relevant to Win7? > If you hit the "edit" button for each of those actions, it should show you the ACTUAL application that performs that action. Duplicate that definition on Win7 (using the correct path to the files if they are different). > If on Win7, I go to Default Programs I see under associations various > python items. Py shows Unknown application. Since installing 2.7.2 I > have not messed with these associations. If I right-click on Unknown, I > see Notepad and python.exe for choices to open the file. I want neither. > Why isn't IDLE listed there? "python.exe" should be the default for open -- that's how you get a double-click on a file to actually RUN it. For script files, editing should be a separate "edit with ..." action. And at this point, who cares why you don't see IDLE listed -- we've been spending half the week trying to tell you HOW to add it. Since I had a registry corruption, I don't even have PYO and PYC files listed, and PYW did not have an edit action. I've since added "edit with Pythonwin" and, just for you, added an "edit with IDLE" action. I did it the long way around, invoking the exe with IDLE as the argument... So... once again... -=-=-=-=-=- Tools/File Options/File Types For each of PY and PYW that don't have an edit action: [New] {give it a name -- note that I leave "open" to RUN the file only} edit with IDLE {application used... change the path to match your installation; keep the quotes} "E:\Python25\pythonw.exe" "E:\Python25\Lib\idlelib\idle.pyw" "%1" {I don't know if the next are significant} [X] Use DDE {Application} IDLE {save the changes} [OK] [OK] [Close] -=-=-=-=-=- After doing the above, the menu would show "edit with IDLE" as a choice. I'd also suggest obtaining a copy of "Windows 7 Inside Out" -- though it appears to have skipped the detailed file type action definitions (no wonder -- if my laptop with Win7 Home Premium is any example, MicroSloth /removed/ the ability to add multiple actions -- there is NO "tools/file options/file types" visible. That leaves using the registry editor to add the actions. My Win7 machine has the following entries (export from regedit): -=-=-=-=-=- Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.py] @="Python.File" "Content Type"="text/plain" [HKEY_CLASSES_ROOT\.pyw] @="Python.NoConFile" "Content Type"="text/plain" HKEY_CLASSES_ROOT\Python.File] @="Python File" [HKEY_CLASSES_ROOT\Python.File\DefaultIcon] @="C:\\Python27\\DLLs\\py.ico" [HKEY_CLASSES_ROOT\Python.File\shell] [HKEY_CLASSES_ROOT\Python.File\shell\EditWithPythonwin] @="Edit with &Pythonwin" [HKEY_CLASSES_ROOT\Python.File\shell\EditWithPythonwin\command] @="\"C:\\PYTHON~1\\Lib\\SITE-P~1\\PYTHON~1\\PYTHON~1.EXE\" \"%1\" %*" [HKEY_CLASSES_ROOT\Python.File\shell\open] @="Open" [HKEY_CLASSES_ROOT\Python.File\shell\open\command] @="\"C:\\Python27\\python.exe\" \"%1\" %*" [HKEY_CLASSES_ROOT\Python.NoConFile] @="Python File (no console)" [HKEY_CLASSES_ROOT\Python.NoConFile\DefaultIcon] @="C:\\Python27\\DLLs\\py.ico" [HKEY_CLASSES_ROOT\Python.NoConFile\shell] [HKEY_CLASSES_ROOT\Python.NoConFile\shell\EditWithPythonwin] @="Edit with &Pythonwin" [HKEY_CLASSES_ROOT\Python.NoConFile\shell\EditWithPythonwin\command] @="\"C:\\PYTHON~1\\Lib\\SITE-P~1\\PYTHON~1\\PYTHON~1.EXE\" \"%1\" %*" [HKEY_CLASSES_ROOT\Python.NoConFile\shell\open] @="Open" [HKEY_CLASSES_ROOT\Python.NoConFile\shell\open\command] @="\"C:\\Python27\\pythonw.exe\" \"%1\" %*" -=-=-=-=-=- In contrast, my WinXP system shows (just for .PY, and with the above add for IDLE): -=-=-=-=-=- Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.py] @="py_auto_file" [HKEY_CLASSES_ROOT\.py\PersistentHandler] @="{5e941d80-bf96-11cd-b579-08002b30bfeb}" [HKEY_CLASSES_ROOT\py_auto_file] @="" "EditFlags"=dword:00000000 "BrowserFlags"=dword:00000008 [HKEY_CLASSES_ROOT\py_auto_file\shell] @="open" [HKEY_CLASSES_ROOT\py_auto_file\shell\edit] [HKEY_CLASSES_ROOT\py_auto_file\shell\edit\command] @="\"E:\\Python25\\Lib\\site-packages\\pythonwin\\Pythonwin.exe\" \"%1\"" [HKEY_CLASSES_ROOT\py_auto_file\shell\edit_with_IDLE] @="edit with IDLE" [HKEY_CLASSES_ROOT\py_auto_file\shell\edit_with_IDLE\command] @="\"E:\\Python25\\pythonw.exe\" \"E:\\Python25\\Lib\\idlelib\\idle.pyw\" \"%1\"" [HKEY_CLASSES_ROOT\py_auto_file\shell\edit_with_IDLE\ddeexec] [HKEY_CLASSES_ROOT\py_auto_file\shell\edit_with_IDLE\ddeexec\Application] @="Idle" [HKEY_CLASSES_ROOT\py_auto_file\shell\open] [HKEY_CLASSES_ROOT\py_auto_file\shell\open\command] @="\"E:\\Python25\\python.exe\" \"%1\" %*" -=-=-=-=-=- -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/