USCG360D has asked for the wisdom of the Perl Monks concerning the following question:
#!/perl/bin/perl -w #use strict; use warnings; use Tkx; Tkx::package_require("Tktable"); my $mw = Tkx::widget->new("."); %hash = ( # data to display '1,0' => 'Vertical', '2,0' => 'Lng', '3,0' => 'Lateral', '0,1' => 'Expected shifts (A)', '0,2' => 'Shifts based on img alignment (B)', '0,3' => '|A-B|', ); my $t = $mw->new_table ( -rows => 4, -cols => 4, -cache => 1, -variable => \%hash, ); $t->g_pack(-fill => 'both', -expand => 1); $b=$mw->new_button (-text=>"Finish", -command=>sub {RecordData()}, ); $b->g_pack(); sub RecordData() { # save the data input in the table to a file }; Tkx::MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: a perl tkx GUI
by Anonymous Monk on May 22, 2013 at 03:04 UTC | |
by USCG360D (Initiate) on May 29, 2013 at 00:26 UTC | |
by Anonymous Monk on May 29, 2013 at 04:13 UTC | |
by USCG360D (Initiate) on May 29, 2013 at 17:01 UTC | |
by Anonymous Monk on May 30, 2013 at 04:35 UTC |