[Tutor] Module for browsing Windows?

Wayne Werner waynejwerner at gmail.com
Wed Aug 11 16:57:58 CEST 2010

On Tue, Aug 10, 2010 at 7:17 PM, Chorn, Guillaume <guillaume_chorn at merck.com
> wrote:

>  Hello,
> I'm pretty new to Python programming and it is my first programming
> language.  I made a script that uses data from two different .csv files to
> make calculations and then spit the results out in a third .csv file.
> However, the process of typing in the path to each of the two input files
> and the output file (or even copying and pasting those paths) is somewhat
> cumbersome from a UI perspective, and so I was wondering if there is a
> Python module out there that allows you to browse to and select files using
> a Windows-style interface.  Thanks!
Tkinter is pretty easy:

import Tkinter as tk
import tkFileDialog as fd

root = tk.Tk()

csv1 =  fd.askopenfilename()
csv2 = fd.askopenfilename()

# Do the rest of your stuff here.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100811/3ae3d8f9/attachment.html>

More information about the Tutor mailing list