Andy, You must define a callback associated for the gtk.filechooser's file-set signal. In the call back, use widget.get_filename() to return the file name as a string.
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() 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 Rogge >> I don't seem to be able to figure out how to extract the selected >> filename as a string into code, or how to set up a file filter. ------------------------------------------------------------------------------ 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
