Skip to content

Instantly share code, notes, and snippets.

@vividsnow
Created July 3, 2015 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vividsnow/852c0050cf9dbfa0bd71 to your computer and use it in GitHub Desktop.
Save vividsnow/852c0050cf9dbfa0bd71 to your computer and use it in GitHub Desktop.
gtk3 file choose
use strict; use warnings;
use Gtk3 -init;
my $dialog = Gtk3::FileChooserDialog->new(
'Select files..', Gtk3::Window->new('toplevel'),
qw'open OK ok');
$dialog->set_select_multiple(Gtk3::true);
$dialog->signal_connect( response => sub {
printf "%s\n", join "\n", @{$dialog->get_filenames};
exit });
$dialog->show_all;
Gtk3::main;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment