Created
January 19, 2013 21:03
-
-
Save run4flat/4575114 to your computer and use it in GitHub Desktop.
Basic Prima window build/execute.
This file contains hidden or 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 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