On Tue, 16 Nov 2004 20:38:32 +0100 Johan Dahlin <[EMAIL PROTECTED]> wrote:
> tis 2004-11-16 klockan 12:33 -0600 skrev Skip Montanaro: > > Johan> Have you tried select_filename() ? > > > > Yeah. Didn't help as far as I could tell. > > Hmm. Might be a bug. Perhaps file a bug in bugzilla and/or ask on gtk- > apps-devel first. Wait -- the new filechooser doesn't have any place to type a filename anyway, right -- at least in open mode (gtk.FILE_CHOOSER_ACTION_OPEN). In save mode, I've set the filename with the following: path,name=os.path.split(os.path.expanduser(self.filename)) if path: fsd.set_current_folder(path) if name: fsd.set_current_name(name) where fsd is a gtk.FileChooserDialog() I assume that when I wrote that code, I had a reason for setting the current_folder and current_name separately, but I don't have the time now to figure out what that was :) I use that same code for all my file chooser dialogs in my app (http://grecipe-manager.sourceforge.net). With saveas dialogs, the name is filled in the little written box. With open dialogs, the correct file is selected (I believe -- I'm not sure I've actually had reason to implement this). Tom _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
