[pygtk] FileChooserButton

Felix Rabe (public) public at felixrabe.textdriven.com
Fri Feb 2 01:55:54 WST 2007


jon heise wrote:
> Felix Rabe (public) wrote:
>> Hi,
>>
>> Having a button made like this:
>>
>>     fcb = gtk.FileChooserButton("Select A File")
>>     fcb.show()
>>
>> How do I know when it gets pressed?  The FileChooser "file-activated" 
>> does not seem to fit.
>>
> you need to connect the button to an event, something like 
> fcb.connect("clicked",functionname) if the function needs any arguments 
> just add as arguments to connect following the function in question.
> 

Yes I know, the sentence should have been: The FileChooser "file-activated" *signal* does not seem to be the right one to connect to.

Now what signal should I connect to?  I haven't found anything and I don't want to dissect the V/HBox that it is.  I remember having used FileChooserButton earlier, but I have absolutely no clue how I caught the moment when a file got selected through the dialog.

Greetings,
Felix


More information about the pygtk mailing list