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
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to