发新话题
打印

Perl/Tk FAQ - 10.6. 如何设置绑定

Perl/Tk FAQ - 10.6. 如何设置绑定

  原文:

10.6. How do I add bindings?

On Fri, 15 Sep 95 10:30:56 BST Nick Ing-Simmons <Nick.Ing-Simmons@tiuk.ti.com> writes: Re: Multiple binds to a single widget?**************************************On Thu, 14 Sep 1995 14:57:54 -0400Alain St <astdenis@cmc.doe.CA> writes:!In the tcl/tk doc I have, they say that prepending the script !with ' ' appends the new binding to the current one.!!How do I do that in perlTk? !

You cannot do that that way (yet?) - one issue is what it would mean to prepend ' ' to a perl/Tk callback :

$widget->bind('<A>',' ',[\

TOP

发新话题