in reply to Re: Tk::NoteBook issue with creating tabs under a menu
in thread Tk::NoteBook issue with creating tabs under a menu

I'm trying to make sense of the following code snippet from the example above by zentara.

At present I'm really quite unsure how to access frame elements of dynamically created tabs.

$nbframes{$choice}{'frame'}

Any help appreciated.
Peter.

Replies are listed 'Best First'.
Re^3: Tk::NoteBook issue with creating tabs under a menu
by Anonymous Monk on Jul 16, 2008 at 07:44 UTC
    Well, Tk::Notebook->add returns a frame
    $nbframes{$choice}{'frame'} = $nb->add(...
    zentara stored it in $nbframes{$choice}{'frame'}, and later accessed it with
    $nbframes{$choice}{'frame'}->Scrolled('Text',-bg=>'white')
    so it sounds like you need to read perldsc, references quick reference