I am trying to use the DynTabFrame. I have created a DynaTab with the following
$dynatab_name = 'SNG'; dynatab_frame_child($tab_Tabbed, \$tabbed_frame{$dynatab_name}, $dynat +ab_caption, $dynatab_title, $dynatab_image, $dynatab_colour , $dynata +b_raised_colour);
$tab_tabbed has been created as a DynaTabFrame

This is the code for the dyantab_frame_child

sub dynatab_frame_child($$$$$$$) { my ($tab_parent, $ref_child, $dynatab_caption, $dynatab_title, $dynata +b_image, $dynatab_colour ,$dynatab_raised_colour) = @_; $$ref_child = $tab_parent->add( -caption => $dynatab_caption, -label => $dynatab_title, -tabtip => "Tip for tabno", ) ->pack() ; }
The following is a sub where I am trying to hide this tab frame using the sub hid_tab called from a button
sub hide_tab() { my ($hidden_value, $dynatab_name); $dynatab_name = 'SNG'; print "\n[hide_tab] entered\n"; $hidden_value = $tabbed_frame{$dynatab_name}->cget(-hidden); print "\n[hide_tab] for $dynatab_name - $hidden_value <$hidden_value>\ +n"; if(length($hidden_value) == 0) { print "\n[hide_tab] hiding $dynatab_name - $hidden_value <$hidden_ +value>\n"; $tabbed_frame{$dynatab_name}->configure(-hidden => 1); } }
This is the error I get in the hide_tab sub
[hide_tab] hiding SNG - <> Tk::Error: Can't set -hidden to `1' for Tk::Frame=HASH(0x20f90157e48): + unknown option "-hidden" at C:.....
What am I doing wrong?

The pod for DynaTab has:

-hidden
When set to a true value, causes the resulting tab to be hidden from view; can later be set to a false value to force the tab to be visible again.

In reply to DynaTab Hide error by merrymonk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.