[Tkinter-discuss] Drop Down menu depicting system directory structure

Guilherme Polo ggpolo at gmail.com
Tue Sep 23 14:52:48 CEST 2008


On Tue, Sep 23, 2008 at 7:06 AM, Ashish Sethi <ashishbitsgoa at gmail.com> wrote:
> Hi all
> I am creating an application using Tkinter which requires user to
> input a file address (complete path). I am currently using an Entry
> widget for this. But I was wondering if I can use some other widget
> like OptionMenu to depict the entire directory and file structure on
> my machine so that the user can directly select any file rather than
> typing the entire file path. Please suggest .

Wouldn't you prefer to use a file dialog ? Check tkFileDialog.askopenfilename

> p.s.- I am working in unix environment
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>



-- 
-- Guilherme H. Polo Goncalves


More information about the Tkinter-discuss mailing list