On 25 April 2012 17:10, Daniel Rogge <dro...@tormach.com> wrote:

> I don't know about the filter, but the filechooser button works fine.

Thanks for the help, I seem to have what I want now.

    def __init__(self, halcomp, builder, useropts):
        self.fb = builder.get_object('filechooserbutton1')
        self.filt = gtk.FileFilter()
        self.filt.add_pattern('*.bmp')
        self.filt.set_name('Bitmaps')
        self.fb.add_filter(self.filt)

Works. I imagine there are neater ways to code this?
-- 
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to