Created
July 3, 2015 23:37
-
-
Save vividsnow/852c0050cf9dbfa0bd71 to your computer and use it in GitHub Desktop.
gtk3 file choose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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