how to bind a command to the open button

hg hg at nospam.org
Tue Dec 12 12:56:59 EST 2006


susan wrote:

> Hi,
>  Anybody knows how to bind a command to the open button at a file
> browser dialog? I want to add selected files to a scrolllist.
> 
> Like this:
> 
> def browseFile(self):
> 
>         file = askopenfilename(filetypes = [("TDF Files", "*.TDF"),
> ("All Files", "*.*")],multiple=1)
>         
>         ?.....
> 
> Thanks!

why don't you add the result "file" to the list ?





More information about the Python-list mailing list