WxPython versus Tkinter.

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sun Jan 23 20:18:22 EST 2011


On Mon, 24 Jan 2011 00:44:57 +0100, Martin v. Loewis wrote:

>> 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()"

Brilliant! Pity that it is so ugly under Linux :(



-- 
Steven



More information about the Python-list mailing list