On Tue, Aug 10, 2010 at 7:17 PM, Chorn, Guillaume <guillaume_ch...@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()
root.widthdraw()

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

# Do the rest of your stuff here.

HTH!
-Wayne
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to