[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: file dialog



Perfect! I'm trying to port my Tk project over to Gtk2 - this was one
of my stumbling blocks...

Thanks again.

On Apr 6, 2005 10:32 PM, muppet <scott asofyet org> wrote:
> 
> On Apr 6, 2005, at 9:36 PM, Dave M wrote:
> 
> > Gtk2::FileChooserDialog works fine for files - anything for
> > directories?
> 
> indeed -- FileChooser does it all, you just tell it which action to
> perform.  :-)
> 
> http://developer.gnome.org/doc/API/2.0/gtk/
> GtkFileChooser.html#GtkFileChooserAction
> 
>   $filechooser = Gtk2::FileChooserDialog->new
>                               ("Choose a directory",
>                                $parent,
>                                'select-folder', # <--- the action
>                                'gtk-cancel' => 'cancel',
>                                'gtk-ok' => 'ok');
> 
> --
> "Ghostbusters" is the best movie of this decade.
>   -- Neal, circa 1996, referring to a movie released in 1984.
> 
>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]