Re: disable right click menu for Text/ROText widget

Slaven Rezic <[email protected]> 12 Jul 2007 22:27:05 +0200
Newsgroups gmane.comp.lang.perl.tk
Message-ID <[email protected]>
listmail <[email protected]> writes:

> I'm having an issue with the right click menu for a Text/ROText widget 
> in that it will not "disappear" after a selection has been made with the 
> mouse. It usually ends up behind the MainWindow just hanging out on the 
> desktop and can still be interacted with.  Since this menu isn't used 
> for the particular program I'm working on, I would like to know how to 
> gracefully disable the menu for now.  If there is any additional 
> information on this sort of behavior then please let me know.

Just call

        $text->menu(undef);

to disable the menu.

Regards,
        Slaven

-- 
Slaven Rezic - slaven <at> rezic <dot> de
    babybike - routeplanner for cyclists in Berlin
	       handheld (e.g. Compaq iPAQ with Linux) version of bbbike
    http://bbbike.sourceforge.net
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk