tkinter file selector
Eric Brunel
eric.brunel at pragmadev.com
Mon Jan 13 10:31:09 EST 2003
Martin Franklin wrote:
> A simple example of the tkFileDialog :-
>
> from Tkinter import *
> import tkFileDialog
>
> root = Tk()
>
> def select_file():
> file = tkFileDialog.askopenfilename()
> print file
>
> b=Button(root, text="Select", command = select_file)
> b.pack()
>
> root.mainloop()
>
>
> HTH
> Martin
You may find the following Tkinter documentation quite useful:
http://www.pythonware.com/library/tkinter/introduction/index.htm
The chapter describing what you want to do is here:
http://www.pythonware.com/library/tkinter/introduction/x1164-data-entry.htm
HTH
--
- Eric Brunel <eric.brunel at pragmadev.com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
More information about the Python-list
mailing list