On 2012-10-21, at 3:28 PM, Mike Ignatoski <[email protected]> wrote:
> I'm trying to delete some balloon help text from a Tk Canvas item using the 
> BWidget widget, DynamicHelp.
> 
> This code adds the help (works fine)
>             Tkx::DynamicHelp__add ( $canvasTop, -item=> 'ab_atk', -text => 
> 'My tooltip help text' );
> This code does NOT work, results in run-time error.
>            Tkx::DynamicHelp__delete ( $canvasTop, -item=> 'ab_atk' );

This seems to be an API flaw in DynamicHelp.  The above shouldn't take args, 
but only supports removing all help on said widget.

> This code seems to act as a good workaround
>             Tkx::DynamicHelp__add ( $canvasTop, -item=> 'ab_atk', -text => '' 
> );
> 
> Although the work around seems to work fine, I was wondering if there was a 
> way to use the "delete" method.

This seems to be the proper functional method when using -item indexing.

Jeff

Reply via email to