in reply to Re: Re: How do I put Widgets/Information onto TK::NoteBook pages
in thread How do I put Widgets/Information onto TK::NoteBook pages

First: use strict! There are questionable lines in your code. You have the @int array containing the page widgets, why not use this one instead of the wrong code in the lines 80 and 84?
  • Comment on Re: Re: Re: How do I put Widgets/Information onto TK::NoteBook pages

Replies are listed 'Best First'.
Re: Re: Re: Re: How do I put Widgets/Information onto TK::NoteBook pages
by Anonymous Monk on May 06, 2004 at 04:18 UTC
    Does any Monk here understand the concept of DYNAMIC variables and the need to generate them? And the need to be able to address them on the fly as I loop through the original information from the ipconfig command? Apprarently not. Thanks for your time, but not for your so called wisdom.
      If you're code would be less confusing, then it would be easier to help you with your actual code. But maybe all you want is:
      use Tk; $mw = tkinit; $nb = $mw->NoteBook->pack; $nb->add("page$_", -label => "page$_") for 1..5; for my $page ($nb->pages) { my $f= $nb->page_widget($page); $f->Label(-text => $page)->pack; } MainLoop;
      page_widget is not (yet) documented, but it is listed in the "public" part of Tk/NoteBook.pm, so it's probably safe to use it.