http://www.perlmonks.org?node_id=871991


in reply to more than one DynaTabFrame

I just ran this code unaltered.

Both tabs are shown with the text "A" or "B" as you've coded it here.

Both have the Labels you've packed - not just the last one.

You are correct about "A" showing under "B" - that's the order you packed them in.

You are incorrect with respect to "... so in this case it would show a blank tab for what should be the B tab ...". Why did you think that would be the case when you've provided text for both tabs?

Perhaps there's some confusion because everything is called just "A" or "B" - try "Tab A" and "Label A", for instance, so that you can see more clearly what is going on.

I strongly recommend that you do not use global variables throughout your code!

You should add use strict; and use warnings; to the top of your code.

-- Ken

Replies are listed 'Best First'.
Re^2: more than one DynaTabFrame
by liamlrb (Acolyte) on Nov 18, 2010 at 03:13 UTC
    Hi Ken, thanks for checking it out for me... This was the smallest code example that shows my problem I could write and not actual production code... I am still getting the same indications! I am running Perl v5.10.1 and Tk 804 and dynatabframe .23 what are you running?

      I have Tk 804.029 and Tk::DynaTabFrame 0.23; I'm running Perl 5.12.0 - got the same results I reported on both Cygwin (cygwin-thread-multi-64int) and Windows XP (MSWin32-x86-multi-thread).

      -- Ken