michaelg has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks

I'm trying to rearange the order of the folders in a notebook widget, I would like to sperate the folders , lets say: all in left and one in right , yet all I get are all the folders are aligned to the left. I didn't find anything at the books , maybe some of you monks got an Idea.


michaelg

Edit: BazB, added "Tk" to title.

Replies are listed 'Best First'.
Re: Tk notebook manipulation
by pg (Canon) on Dec 14, 2003 at 19:27 UTC

    It sounds like you have bit of misunderstanding as how those Tk::NoteBook tabs can be rendered. They follow flow layout. Here is a piece of demo:

    use Tk; use Tk::NoteBook; use strict; use warnings; my $m = new MainWindow(); my $mw = $m->NoteBook()->pack; my $page1 = $mw->add("page1", -label => "page1"); $page1->Entry(-width => 10)->pack; my $page2 = $mw->add("page2", -label => "page2"); $page2->Entry(-width => 15)->pack; my $page3 = $mw->add("page3", -label => "page3"); $page3->Entry(-width => 20)->pack; my $page4 = $mw->add("page4", -label => "page4"); $page4->Entry(-width => 25)->pack; MainLoop;

    BTW, it is quite unfortunate that, the author of the Tk::NoteBook module even does not have the courtesy to test his demo code in his document, and the demo code is obviously wrong.

      Hi,

      Thank you for the reply , but this is not what I was looking for , as I wrote I'm trying to seperate the folders, let's say that I have all my topics at the left side of the notebook and now I want to add "help" folder , but I want it to be loated at the right side of the notebook.

      Thx
      michaelg