Re: Scrolled menu

Duncan Ferguson <[email protected]> Thu, 23 Apr 2009 17:12:52 +0100
Newsgroups gmane.comp.lang.perl.tk
Message-ID <[email protected]>
On 22 Apr 2009, at 18:35, Paul Allen wrote:
>
> My Tk books are at home, but isn't the first argument of Scrolled()
> the class of the thing you want to be scrolled?  Perhaps Scrolled()
> cannot be applied to a Menu, and perhaps someone here can say so
> authoritatively.  But in the mean time, try passing 'Menu' as the
> first argument to Scrolled() and see what happens.  It might be
> exciting.  :-)

It was almost exciting :)

     $menus{hosts} = $menus{bar}->Scrolled('Menu',
         -scrollbars => 'e',
         -label     => 'Hosts',
         -tearoff   => 1,
         -menuitems => [

gave me an error of:

bad menu entry index "Hosts" at /usr/lib/perl5/Tk.pm line 250.

Forgot to mention before, but this is Tk 804.028

Thanks

   Duncs

--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk