On 26 April 2012 17:25, Daniel Rogge <dro...@tormach.com> wrote: > I don't think there's much more you can do to make it neater.
If I may be forgiven for mentioning it, in VB the format would be something like def __init__(self, halcomp, builder, useropts): fb = builder.get_object('filechooserbutton1') With fb.add_file_filter .pattern = '*.bmp' .name = 'Bitmaps' End With self.fb.add_filter(self.filt) I was wondering if there is anything like the VB "With" in Python. > http://stackoverflow.com/questions/1705418/can-you-set-the-filefilters-for-a-gtk-dialog-in-glade Interesting code, a lot of explicit typing there, which I have not seen much of in Python before -- 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