comp.lang.tcl
[Top] [All Lists]

Re: Not able to bind <B1-Button>?

Subject: Re: Not able to bind <B1-Button>?
From: "Donal K. Fellows"
Date: Fri, 30 May 2008 03:03:58 -0700 PDT
Newsgroups: comp.lang.tcl

Dave Bodenstab wrote:
> I must be missing something incredibly obvious, but
> why do I not get anything printed when I click with
> mouse button 1?  I've tried a couple of different
> window mgr's on X11, and also tried on windows.
>
> bind . <B1-Button> "puts %W"

That detects clicking a button while button #1 is pressed, i.e. mouse
chords. For simple clicks, you want <Button-1> (which can be shortened
to <1>).

Donal.

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy