On 25 April 2012 02:38, Chris Morley <chrisinnana...@hotmail.com> wrote:
>> I am struggling with the file selector button Glade widget. >> >> 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. > What language? c or python? Python. Which I now have a whole half an evening of experience with. > gladevcp's file select or glade's regular file select? The normal Glade one, specifically the File Select Button, which operates and pops up a file-select dialog, and changes the caption to show the selected file. However I have not figured out how to filter the file display, nor how to access the chosen file name programmatically. The Glade editor allows you to attach a filefilter object to the button, but there is no way to add any filterspecs to the object inside the editor, and I have not managed to access it programmatically to use the add_filter method. The Glade editor also allows you to attach a file select dialogue to the button, but I am not sure why you would want to do that, unless perhaps that is required to access the filename. Google basically leaves me in the situation described here: http://xkcd.com/979/ -- 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