in reply to Re^3: Prima: How to get a "table" layout?
in thread Prima: How to get a "table" layout?

Fair enough. For what it is worth: I am running Prima on Strawberry Perl (the 5.38 PDL edition) but don't recall its history. Sometimes Prima tests act up, (in particular those running tests on character display. Perhaps I skipped tests.

  • Comment on Re^4: Prima: How to get a "table" layout?

Replies are listed 'Best First'.
Re^5: Prima: How to get a "table" layout?
by GrandFather (Saint) on Jan 20, 2025 at 03:55 UTC

    According the CPAN Testers I'm more likely to have success with 1.74 (penultimate version) than 1.75 (current version). Actually, if I use force I can install 1.74 against Strawberry 5.22 at work. Does this do what you want:

    use Prima qw(Application Label InputLine); my $main = Prima::MainWindow->create( text => 'Configuration', backColor => cl::White, menuItems => [ ['~File' => [['~Quit' => 'Ctrl+Q', '^Q', sub { $::application->close } ], ], ], ] ); my $fps = $main->insert( Widget => pack => { side => 'top' }, ); $fps->insert( Label => text => 'Refresh rate: ', width => 200, pack => { side => 'left' }, ); $fps->insert( InputLine => text => '60', width => 100, pack => { side => 'left' }, ); $fps->insert( Label => text => 'FPS', width => 50, pack => { side => 'left' }, ); my $res = $main->insert( Widget => pack => { side => 'top' }, ); $res->insert( Label => text => "Spectral resolution", width => 200, pack => { side => 'left' }, ); $res->insert( InputLine => text => '10', width => 100, pack => { side => 'left' }, ); $res->insert( Label => text => 'Hz', width => 50, pack => { side => 'left' }, ); my $limit = $main->insert( Widget => pack => { side => 'top' }, ); $limit->insert( Label => text => "Show spectrum up to", width => 200, pack => { side => 'left' }, ); $limit->insert( InputLine => text => '5000', width => 100, pack => { side => 'left' }, ); $limit->insert( Label => text => 'Hz', width => 50, pack => { side => 'left' }, ); Prima->run;

    Update: Sorry, forgot about the "no counting pixels" criteria.

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
A reply falls below the community's threshold of quality. You may see it by logging in.