[pygtk] How to use gtk.FileChooserButton?
John Finlay
finlay at moeraki.com
Tue Aug 14 16:17:14 WST 2007
Taras wrote:
> Hello, everybody!
> Now I currently use such code with usual button for run and process
> response file chooser dialog.
> Some times ago I found in PyGTK reference new gtk.FileChooserButton (
> http://pygtk.org/docs/pygtk/class-gtkfilechooserbutton.html)
> but from manual I didn't understand how to use it.
> Can you give me some example of it?
>
AFAICT the FileChooserButton is a replacement for using an entry/label
and associated file browser button. It only allows selecting one
existing file or folder and displays the name of the selected file in
the button label. You would likely use the FCB in a dialog where a file
or folder is to be selected (along with other info) and finally another
action (e.g. clicking an OK button) is used to retrieve the currently
selected file or folder and perform some operations. I don't think it
works very well if you want to perform some actions immediately after
selecting a file or folder.
John
More information about the pygtk
mailing list