Opening a file with Python

Janos Blazi jblazi at hotmail.com
Tue Jul 24 12:57:37 EDT 2001


Yes, thx. Can you tell me the difference between python.exe and pythonw.exe?
And later I am going to use Tkinter in my program. Shall I need python.exe
or pytjonw.exe?

J.B.

"Nick Perkins" <nperkins7 at home.com> schrieb im Newsbeitrag
news:nzh77.543721$eK2.114049226 at news4.rdc1.on.home.com...
> I have this associated with .py -> Open
>
> C:\Python21\python.exe "%1" %*
>
> and
> C:\Python21\pythonw.exe "%1" %*
> for .pyw
>
> ..using python.exe instead of pythonw.exe will give you
> a dos window which will show any error messages
> ( but it closes before you can read them --  very annoying )
>
>
>
> "Janos Blazi" <jblazi at hotmail.com> wrote in message
> news:3b5d8947_5 at news.newsgroups.com...
> > Thx.
> > Most unfortunately, this does not work. If I omit the double quotes it
> seems
> > that the file is not opened correctly (I am usinf pythonw.exe instead of
> > winpy.exe as i do not have the latter). If I set the double quotes, I
> cannot
> > enter my program as i get the error message 'the application you have
> > selected does not exist'.
> >
> > Janos Blazi
> >
> > "Kevin Riggle" <vj$ri^gg#guess#l55e at mt$*guess#&cn1e#t.!@n()et> schrieb
im
> > Newsbeitrag news:9jhgm4$2mo$1 at mtc1.mtcnet.net...
> > > You have to associate the file-type with the program.
> > >
> > > Open up My Computer, click View...Folder Options, select the File
Types
> > tab,
> > > and click on New Type.
> > >
> > > Fill in the description and extension you want to use, then click on
the
> > New
> > > button beneath the Actions: list box.
> > >
> > > Fill in the Action Name (probably Open), and set 'Application used to
> > > perform action:' to
> > >
> > > "c:\Program Files\MyPyProg\mypyprog.exe %1" if using py2exe,
> > >
> > > or "c:\Program Files\WinPy\winpy.exe c:\Program
> Files\MyPyProg\mypyprog.py
> > > %1",
> > >
> > > in both examples *including* the double-quotes.
> > >
> > > (I haven't actually used Python on Windows, so if the WinPy path is a
> > little
> > > off please forgive me.)
> > >
> > > Hope this helps...  Kevin
> > >
> > >
> > > "Janos Blazi" <jblazi at hotmail.com> wrote in message
> > > news:3b5be641_3 at news.newsgroups.com...
> > > > I'd like to write a Python program that starts when the user double
> > clicks
> > > > on a file name (in Win2K). I should be able to read the name of the
> > file.
> > > > What have I to do?
> > > > This question has probably been asked many times, sorry.
> > > >
> > > > Janos Blazi
> > > >
> > > >
> > > >
> > > >
> > > > -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> > > > http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> > > > -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----
> > >
> > >
> >
> >
> >
> >
> > -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> > http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> > -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----
>
>




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



More information about the Python-list mailing list