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;
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|