liamlrb has asked for the wisdom of the Perl Monks concerning the following question:
should be simple ( sbs ). Just want to have two separate sets of tabbed frames. this code is only showing the last tabbed frame that had something packed in it. so in this case it would show a blank tab for what should be the B tab and under that a normal A tab with the label "A" in it
use Tk; use Tk::DynaTabFrame; $mw = MainWindow->new; $parent_frame_b = $mw->Frame ()->pack(); $wnd_b = $parent_frame_b->DynaTabFrame ()->pack( ); $frm_b = $wnd_b->add( 'B', -hidden => 0, -caption => 'B')->pack( ) +; $frm_b->Label( -text => "B" )->pack( ); $parent_frame_a = $mw->Frame ()->pack(); $wnd_a = $parent_frame_a->DynaTabFrame ( )->pack( ); $frm_a = $wnd_a->add( 'A', -hidden => 0, -caption => 'A')->pack( ) +; $frm_a->Label( -text => "A" )->pack( ); MainLoop;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: more than one DynaTabFrame
by zentara (Archbishop) on Nov 17, 2010 at 13:59 UTC | |
by liamlrb (Acolyte) on Nov 18, 2010 at 03:17 UTC | |
by liamlrb (Acolyte) on Nov 18, 2010 at 04:43 UTC | |
by zentara (Archbishop) on Nov 18, 2010 at 12:58 UTC | |
Re: more than one DynaTabFrame
by kcott (Archbishop) on Nov 17, 2010 at 13:07 UTC | |
by liamlrb (Acolyte) on Nov 18, 2010 at 03:13 UTC | |
by kcott (Archbishop) on Nov 18, 2010 at 04:21 UTC | |
Re: more than one DynaTabFrame
by Khen1950fx (Canon) on Nov 17, 2010 at 13:58 UTC |
Back to
Seekers of Perl Wisdom