Skip to content

Instantly share code, notes, and snippets.

@run4flat
Created January 19, 2013 21:03
Show Gist options
  • Select an option

  • Save run4flat/4575114 to your computer and use it in GitHub Desktop.

Select an option

Save run4flat/4575114 to your computer and use it in GitHub Desktop.
Basic Prima window build/execute.
use strict;
use warnings;
use Prima qw(Application Buttons Label);
my $window = Prima::Window->create();
$window->insert(Label =>
text => 'test',
pack => { side => 'top', fill => 'x', expand => 1 }
);
for my $option (qw(one two three)) {
$window->insert(Radio =>
text => $option,
pack => { side => 'top', fill => 'x', expand => 1 },
);
}
$window->execute;
print "All done!\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment