WxPython versus Tkinter.

Martin v. Loewis martin at v.loewis.de
Sun Jan 23 18:44:57 EST 2011


> For something as common as displaying a file browser, it should be as 
> simple as this:
> 
> import gui_toolkit  # whichever
> path = gui_toolkit.select_file()
> 
> Something like zenity:
> 
> [steve at sylar ~]$ zenity --file-selection
> /home/steve/python/findsingle.py

And indeed, it is that simple:

python -c "import tkFileDialog as tkfd;print tkfd.askopenfilename()"

Regards,
Martin



More information about the Python-list mailing list