<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Dear all,<br>As you all suggested, my python installations are messed-up.<br>There are py2.6 and py3.1 ( py3.1 at two different locations) versions installed.<br><br>Although I have set the PYTHONPATH variable correctly to run py2.6 version, I wonder how the py3.1 takes control while running any py script!!!<br><br>In my code, I am importing Tkinter (i.e.py 2.6 syntax).<br>When py3.1 encounters Tkinter, it is giving exception and the program execution halts.<br><br>Anyway, I will uninstall all and reinstall py2.6<br>(Oh Ma! I need to reinstall all other site-packages like MySQLdb, PyQt, etc.)<br><br>Then let me again experiment again.<br><br>Thanks,<br><br>Vineet<br>---------------------------------------------------------------------------------<br><br>--- On <b>Thu, 5/8/10, python-win32-request@python.org <i>&lt;python-win32-request@python.org&gt;</i></b>
 wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: python-win32-request@python.org &lt;python-win32-request@python.org&gt;<br>Subject: python-win32 Digest, Vol 89, Issue 3<br>To: python-win32@python.org<br>Date: Thursday, 5 August, 2010, 15:30<br><br><div class="plainMail">Send python-win32 mailing list submissions to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:python-win32@python.org" href="/mc/compose?to=python-win32@python.org">python-win32@python.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>&nbsp;&nbsp;&nbsp; <a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank">http://mail.python.org/mailman/listinfo/python-win32</a><br>or, via email, send a message with subject or body 'help' to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:python-win32-request@python.org"
 href="/mc/compose?to=python-win32-request@python.org">python-win32-request@python.org</a><br><br>You can reach the person managing the list at<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:python-win32-owner@python.org" href="/mc/compose?to=python-win32-owner@python.org">python-win32-owner@python.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of python-win32 digest..."<br><br><br>Today's Topics:<br><br>&nbsp;&nbsp;&nbsp;1. Re: running a python script on WinXP by&nbsp;&nbsp;&nbsp; icon&nbsp;&nbsp;&nbsp; double-clicking.<br>&nbsp; &nbsp; &nbsp; (Tim Roberts)<br>&nbsp;&nbsp;&nbsp;2. Re: running a python script on WinXP by icon&nbsp;&nbsp;&nbsp; double-clicking.<br>&nbsp; &nbsp; &nbsp; (Gelonida)<br>&nbsp;&nbsp;&nbsp;3. Wanted: Win32-savvy developers for core Python (Tim Golden)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 4 Aug 2010
 09:56:21 -0700<br>From: Tim Roberts &lt;<a ymailto="mailto:timr@probo.com" href="/mc/compose?to=timr@probo.com">timr@probo.com</a>&gt;<br>To: Python-Win32 List &lt;<a ymailto="mailto:python-win32@python.org" href="/mc/compose?to=python-win32@python.org">python-win32@python.org</a>&gt;<br>Subject: Re: [python-win32] running a python script on WinXP by&nbsp;&nbsp;&nbsp; icon<br>&nbsp;&nbsp;&nbsp; double-clicking.<br>Message-ID: &lt;<a ymailto="mailto:4C599BB5.7050802@probo.com" href="/mc/compose?to=4C599BB5.7050802@probo.com">4C599BB5.7050802@probo.com</a>&gt;<br>Content-Type: text/plain; charset="ISO-8859-1"<br><br> Vineet Deodhar wrote:<br>&gt; I have created a py2.6 script for a simple GUI with Tkinter.<br>&gt; Saved it with .py extension and also as .pyw extension.<br>&gt; ...<br>&gt; 1) When run from command prompt as ---<br>&gt; D:\py&gt;python entry.py<br>&gt; it runs nicely.<br>&gt;<br>&gt; 2) If I double-click on either entry.py or entry.pyw
 file,<br>&gt; nothing happens (no DOS console window to show any error also).<br>&gt;<br>&gt; Any idea how should I run this with double-click on icon!<br>&gt;<br>&gt;<br><br>Does it run if you type just the file name?&nbsp; For example:<br>&nbsp; &nbsp; D:\py&gt;entry.py<br>or<br>&nbsp; &nbsp; D:\py&gt;entry.pyw<br><br>If it runs like that, then it should run from a double-click.&nbsp; Do you<br>have multiple versions of Python installed?&nbsp; Is "Quitter.py" in the same<br>directory as the script?&nbsp; Can you check the associations from a command<br>line using the assoc and ftype commands, like this:<br><br>C:\tmp&gt;assoc .py<br>.py=Python.File<br><br>C:\tmp&gt;assoc .pyw<br>.pyw=Python.NoConFile<br><br>C:\tmp&gt;ftype python.file<br>python.file="C:\Apps\Python26\python.exe" "%1" %*<br><br>C:\tmp&gt;ftype python.noconfile<br>python.noconfile="C:\Apps\Python26\pythonw.exe" "%1" %*<br><br>Your path will probably be different, but the philosophy
 should be the same.<br><br>-- <br>Tim Roberts, <a ymailto="mailto:timr@probo.com" href="/mc/compose?to=timr@probo.com">timr@probo.com</a><br>Providenza &amp; Boekelheide, Inc.<br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 05 Aug 2010 09:04:58 +0200<br>From: Gelonida &lt;<a ymailto="mailto:gelonida@gmail.com" href="/mc/compose?to=gelonida@gmail.com">gelonida@gmail.com</a>&gt;<br>To: <a ymailto="mailto:python-win32@python.org" href="/mc/compose?to=python-win32@python.org">python-win32@python.org</a><br>Subject: Re: [python-win32] running a python script on WinXP by icon<br>&nbsp;&nbsp;&nbsp; double-clicking.<br>Message-ID: &lt;i3dnqq$66i$<a ymailto="mailto:1@dough.gmane.org" href="/mc/compose?to=1@dough.gmane.org">1@dough.gmane.org</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1<br><br>Hi Vineet,<br><br><br>Could you please post the output of the<br>ftype and the assoc commands?<br><br><br><br><br>As Tim asked in
 his post:<br><br>Could you try to start the script from a command prompt without the<br>preceding python command?<br><br>So instead of typing:<br>python entry.py<br><br><br>just type<br><br>entry.py<br><br><br>tell us what happens<br><br><br><br><br><br><br><br>On 08/04/2010 10:02 AM, Vineet Deodhar wrote:<br>&gt; Hi Kevin,<br>&gt; I checked "Opens with" option for .py and .pyw files.<br>&gt; Associations are correct.<br>&gt; <br>&gt; This problem happens for any python script file, not just this-one.<br>&gt; Do I really need to remove &amp; reinstall py26, or can there any other option !<br>&gt; <br>&gt; ---Vineet.<br>&gt; <br>&gt; <br>&gt; <br>&gt; --- On Wed, 4/8/10, Kevin Horn &lt;<a ymailto="mailto:kevin.horn@gmail.com" href="/mc/compose?to=kevin.horn@gmail.com">kevin.horn@gmail.com</a>&gt; wrote:<br>&gt; <br>&gt; From: Kevin Horn &lt;<a ymailto="mailto:kevin.horn@gmail.com"
 href="/mc/compose?to=kevin.horn@gmail.com">kevin.horn@gmail.com</a>&gt;<br>&gt; Subject: Re: [python-win32] running a python script on WinXP by icon&nbsp; double-clicking.<br>&gt; To: "Vineet Deodhar" &lt;<a ymailto="mailto:d_vineet@yahoo.com" href="/mc/compose?to=d_vineet@yahoo.com">d_vineet@yahoo.com</a>&gt;<br>&gt; Date: Wednesday, 4 August, 2010, 12:11<br>&gt; <br>&gt; First check that .py or .pyw files are associated with the proper executables.<br>&gt; <br>&gt; from an explorer window, choose Tools -&gt; Folder Options<br>&gt; then click on the file types tab<br>&gt; <br>&gt; find the PY and PYW entries in the list, and make sure their "Opens with" entries are correct<br>&gt; <br>&gt; <br>&gt; PY -&gt; python.exe<br>&gt; PY -&gt; pythonw.exe<br>&gt; <br>&gt; If those are correct, and you still have problems, then perhaps your python installation is messed up somehow,<br>&gt; or there's something really strange about your script.<br>&gt; <br>&gt;
 <br>&gt; Hope this helps,<br>&gt; Kevin Horn<br>&gt; <br>&gt; On Wed, Aug 4, 2010 at 1:30 AM, Vineet Deodhar &lt;<a ymailto="mailto:d_vineet@yahoo.com" href="/mc/compose?to=d_vineet@yahoo.com">d_vineet@yahoo.com</a>&gt; wrote:<br>&gt; <br>&gt; I have created a py2.6 script for a simple GUI with Tkinter.<br>&gt; Saved it with .py extension and also as .pyw extension.<br>&gt; <br>&gt; <br>&gt; filename is entry.py<br>&gt; [CODE]<br>&gt; from Tkinter import *<br>&gt; from quitter import Quitter<br>&gt; <br>&gt; def fetch():<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;print('Input =&gt; "%s"' % ent.get())<br>&gt; <br>&gt; root = Tk()<br>&gt; ent = Entry(root)<br>&gt; ent.show='@'<br>&gt; <br>&gt; ent.insert(0, 'Type words here')<br>&gt; ent.pack(side=TOP, fill=X)<br>&gt; <br>&gt; ent.focus()<br>&gt; ent.bind('&lt;Return&gt;', (lambda event: fetch()))<br>&gt; btn = Button(root, text='Fetch', command=fetch)<br>&gt; btn.pack(side=LEFT)<br>&gt; <br>&gt;
 Quitter(root).pack(side=RIGHT)<br>&gt; root.mainloop()<br>&gt; [/CODE]<br>&gt; <br>&gt; 1) When run from command prompt as --- <br>&gt; D:\py&gt;python entry.py<br>&gt; it runs nicely.<br>&gt; <br>&gt; 2) If I double-click on either entry.py or entry.pyw file, <br>&gt; <br>&gt; nothing happens (no DOS console window to show any error also).<br>&gt; <br>&gt; Any idea<br>&gt;&nbsp; how should I run this with double-click on icon!<br>&gt; <br>&gt; Thanks,<br>&gt; Vineet.<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<br>&gt; _______________________________________________<br>&gt; <br>&gt; python-win32 mailing list<br>&gt; <br>&gt; <a ymailto="mailto:python-win32@python.org" href="/mc/compose?to=python-win32@python.org">python-win32@python.org</a><br>&gt; <br>&gt; <a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank">http://mail.python.org/mailman/listinfo/python-win32</a><br>&gt; <br>&gt; <br>&gt;
 <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<br>&gt; <br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; python-win32 mailing list<br>&gt; <a ymailto="mailto:python-win32@python.org" href="/mc/compose?to=python-win32@python.org">python-win32@python.org</a><br>&gt; <a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank">http://mail.python.org/mailman/listinfo/python-win32</a><br><br><br><br><br>------------------------------<br><br>Message: 3<br>Date: Thu, 05 Aug 2010 10:49:58 +0100<br>From: Tim Golden &lt;<a ymailto="mailto:mail@timgolden.me.uk" href="/mc/compose?to=mail@timgolden.me.uk">mail@timgolden.me.uk</a>&gt;<br>To: Python-Win32 List &lt;<a ymailto="mailto:python-win32@python.org" href="/mc/compose?to=python-win32@python.org">python-win32@python.org</a>&gt;<br>Subject: [python-win32] Wanted: Win32-savvy developers for core Python<br>Message-ID: &lt;<a
 ymailto="mailto:4C5A8946.40407@timgolden.me.uk" href="/mc/compose?to=4C5A8946.40407@timgolden.me.uk">4C5A8946.40407@timgolden.me.uk</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Please see my blog post on the subject:<br><br><a href="http://ramblings.timgolden.me.uk/2010/08/05/wanted-win32-savvy-developers-for-core-python/" target="_blank">http://ramblings.timgolden.me.uk/2010/08/05/wanted-win32-savvy-developers-for-core-python/</a><br><br>In short: give us a hand, please.<br><br>TJG<br><br><br>------------------------------<br><br>_______________________________________________<br>python-win32 mailing list<br><a ymailto="mailto:python-win32@python.org" href="/mc/compose?to=python-win32@python.org">python-win32@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank">http://mail.python.org/mailman/listinfo/python-win32</a><br><br><br>End of python-win32 Digest, Vol 89, Issue
 3<br>*******************************************<br></div></blockquote></td></tr></table><br>