merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
use strict "vars"; use Tk; use Tk::TabFrame; my ($a_tbfr, $tab_mw, $b_tbfr, $frame_wg); my ($label_text, $CurrentSelection, $child, $childb, $childc, $childd) +; my ($CurrentSelectionC, $CurrentSelectionR, %tabwg, $tabwg_item, $curr +ent_product, $gen_str); my ($gen_intials, $gen_str, $gen_whog, $gen_whoa, $gen_whob, $gen_whoc +, $pb_intials, $pa_intials, $pb2_intials, $j, $j_str); $current_product = 'unset'; $tab_mw = MainWindow->new; $tab_mw->Label(-text => 'Tabbed Frame to Check which is Raised')->grid +(-row => 0); $a_tbfr = $tab_mw->TabFrame ( -font =>'-adobe-times-medium-r-bold--14', -tabcurve =>4, -padx => 10, -pady => 10, -width => 400 ); $a_tbfr->grid ('-row' => 1); for($j = 1; $j <= 30; $j ++) { $j_str = "Tab " . $j; $tabwg{$j_str} = $a_tbfr->Frame ( -caption => $j_str, ); $tabwg{$j_str}->Label(-text => "Text in Label in $j_str", -width => 200)->grid(-row => 2, -column=>0); } foreach $tabwg_item (keys %tabwg) { print "item <$tabwg_item> wg <$tabwg{$tabwg_item}>\n"; } print "\n"; MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Rows of Tabs in Tabbed Frame Query
by planetscape (Chancellor) on Aug 25, 2009 at 11:51 UTC | |
|
Re: Rows of Tabs in Tabbed Frame Query
by Anonymous Monk on Aug 25, 2009 at 11:33 UTC | |
|
Re: Rows of Tabs in Tabbed Frame Query
by $self (Friar) on Aug 25, 2009 at 12:30 UTC |