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" <[EMAIL PROTECTED]> To: <tkinter-discuss@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@python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss