On 25 April 2012 14:52, Daniel Rogge <[email protected]> wrote: > You must define a callback associated for the gtk.filechooser's file-set > signal.
Yes, I have that as a callback for the filechooserbutton. So far it simply prints "Yippee!" > In the call back, use widget.get_filename() to return the file name as a > string. OK, I will try that. I didn't see get_filename as a function/method for the filechooserbutton in the docs. http://www.pygtk.org/docs/pygtk/class-gtkfilechooserbutton.html Or do I need to associate a filechooser to the filechooserbutton to have a get_filename? >From Googling I get the impression that nobody else has ever made this widget work, and that it is in fact entirely useless. > As far as the file filter goes, I've not personally used one but it looks > like you'd create a gtk.filter object and add the pattern for which you'd > like to filter with add_pattern(), then add the filter to the filechooser > with add_filter() I don't have a filechooser most of the time it is a transient object created (and destroyed, I think) by the gtkfilechooserbutton. > More info here: > http://www.pygtk.org/docs/pygtk/class-gtkfilefilter.html#method-gtkfilefilter--add-pattern > > http://www.pygtk.org/docs/pygtk/class-gtkfilechooser.html#method-gtkfilechooser--add-filter Those are the docs for a different object, I think. -- atp The idea that there is no such thing as objective truth is, quite simply, wrong. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
