Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

perl Tkx - DynamicHelp

26 views
Skip to first unread message

Mike Ignatoski

unread,
Oct 21, 2012, 6:28:54 PM10/21/12
to tc...@perl.org
Perl/Tcl/Tk/Tkx Users,

I'm using Perl Tkx, so this is sort of a Tcl/Tk question, also.

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 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.


Thanks,
Mike

Jeff Hobbs

unread,
Oct 22, 2012, 1:17:22 AM10/22/12
to Mike Ignatoski, tc...@perl.org
On 2012-10-21, at 3:28 PM, Mike Ignatoski <mai...@comcast.net> 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
0 new messages