From Mastering Perl/Tk by Steve Lidie & Nancy Walsh published by O'Reilly.

"NoteBook Limitations - pg 580 - You can't have the tabs for a NoteBook automatically wrap around and make more than one line of tabs. Consequently, you might make so many tabs that your window will be too big to be displayed properly. In that case, you might consider having a page contain another NoteBook widget, which will essentially give you two rows of tabs."

This would imply that you can use multiple NoteBook widgets on a page. So a quick test.

use strict; use Tk; use Tk::NoteBook; my $MainWindow = MainWindow->new(-title => 'Testing Notebook Widgets') +; my $FirstNoteBook = $MainWindow->NoteBook()->pack(-expand => 1, -fill= +>'both'); my $SecondNoteBook = $MainWindow->NoteBook()->pack(-expand => 1, -fill + => 'both'); my $PageOne = $FirstNoteBook->add('page1', -label=> 'NB 1 Page 1'); my $PageTwo = $FirstNoteBook->add('page2', -label=> 'NB 1 Page 2'); my $PageThree = $SecondNoteBook->add('page3', -label=> 'NB 2 Page 1'); my $PageFour = $SecondNoteBook->add('page4', -label=> 'NB 2 Page 2'); MainLoop;

This fired up fine with four tabs and blank pages. Now there may be some considerations depending on how you want the output of each page displayed.


"No matter where you go, there you are." BB

In reply to Re: Multiple rows of notebook tabs in Tk by Ninthwave
in thread Multiple rows of notebook tabs in Tk by biochris

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.