> Hi there. Back in February Felix Rabe asked about how to know when a
> FileChooserButton's associated dialog is closed (so that the filename
> of the selected file can be retrieved from it). As far as I can see,
> there was no particular response. Having now stumbled upon the same
> issue, does anyone have any answers?

I don't know how to wait for a dialog to close, but I have way to get selected 
filename without knowing it.
I simply connect to "selection-changed" signal.
Here is sample signal handler (self._fcbLogs is a FileChooserButton):

def _onFcbLogsSelChanged(self, widget, data=None):
    dir = self._fcbLogs.get_filename()
    if dir is None:
        return
        
    dir = unicode(dir, u'utf8')
    self._config.logsPath = dir
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to