[Tkinter-discuss] how to open a file using os.system in TKINTER

Ron Provost ron.longo at cox.net
Wed Jan 9 13:00:12 CET 2008


I belive that askopenfile() shows an open file dialog box and once the user 
has selected a file, it opens the file for you and returns the Python file 
object.  All you have to do is read from that file.

If what you want is a dialog box that returns a filename then you should use 
askopenfilename().  You can then use file() or open() to actually open the 
file.


----- Original Message ----- 
From: "Fredrik Lundh" <fredrik at pythonware.com>
To: <tkinter-discuss at python.org>
Sent: Wednesday, January 09, 2008 5:34 AM
Subject: Re: [Tkinter-discuss] how to open a file using os.system in TKINTER


> brindly sujith wrote:
>
>> i am developing a GUI application using TKINTER
>>
>> i want to open a file from the askopenfile(which is a tkFileDialog)
>> using OS.SYSTEM.
>>
>> i have already created the file open dilog using
>> tkFileDialog.askopenfile(parent=root,mode='rb',title='choose a file')
>> Now i want to open a file from this dialog using OS.SYSTEM
>
> there doesn't seem to be a question in there.  what did you try, and
> what happened when you tried it?
>
> </F>
>
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss 



More information about the Tkinter-discuss mailing list