[pygtk] (FileChooserDialog) Save-Overwrite

Mitko Haralanov mitko at qlogic.com
Thu May 8 05:47:02 WST 2008


On Wed, 7 May 2008 12:09:34 -0700 (PDT)
Andrea Caminiti <a.caminiti at yahoo.com> wrote:

> when i try it, an select an existing file, no overwrite dialog was displayed. when i check 
> the file the previous content was changed for the new one. any idea on what's wrong? 
> any suggestions?

Try connection the dialog's "confirm-overwrite" signal before you run
the dialog. If you look at the pygtk documentation for gtk.FileChooser,
you'll see an example of how to use the "confirm-overwrite" signal.

-- 
Mitko Haralanov
==========================================
 "Who would have though hell would really exist? And that it would be
in New Jersey?" -Leela 
"Actually..." - Fry


More information about the pygtk mailing list