home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / tcl / 2242 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.7 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!sprite.Berkeley.EDU!ouster
  2. From: ouster@sprite.Berkeley.EDU (John Ousterhout)
  3. Newsgroups: comp.lang.tcl
  4. Subject: Re: Bind bug, Tk3.0
  5. Message-ID: <1hasqhINNk4i@agate.berkeley.edu>
  6. Date: 23 Dec 92 23:30:25 GMT
  7. References: <TROMEY.92Dec23141425@kant.cns.caltech.edu>
  8. Organization: U.C. Berkeley Sprite Project
  9. Lines: 32
  10. NNTP-Posting-Host: tyranny.berkeley.edu
  11.  
  12. In article <TROMEY.92Dec23141425@kant.cns.caltech.edu>, tromey@cns.caltech.edu (Tom Tromey) writes:
  13. |> I'm using Tk 3.0 and Tcl 6.5.  I've applied all known patches (two to
  14. |> tkWm.c, one to tkBind.c, and one to tkCanvLine.c).  I also added a
  15. |> patch of my own to tkWm.c which implements the "wm raise" and "wm
  16. |> lower" commands.  I don't think this makes any difference.
  17. |> 
  18. |> Type in the following at the wish prompt:
  19. |> 
  20. |> canvas .zot
  21. |> pack append . .zot left
  22. |> bind <q> exit
  23. |> 
  24. |> Pressing "q" in the window has no effect.  This same script worked
  25. |> under Tk 2.3.
  26. |> 
  27. |> Let me register my vote for a patchlevel.h or moral equivalent to make
  28. |> reporting bugs easier.
  29. |> 
  30. |> Tom
  31. |> --
  32. |> tromey@cns.caltech.edu
  33. |> "In a riddle whose answer is chess, what is the only prohibited word?"
  34. |> I thought a moment and replied, "The word chess".
  35. |>     -- Jorge Luis Borges
  36.  
  37. You need to focus on the canvas window, e.g. "focus .zot".
  38.  
  39. In Tk2.3 and earlier versions, if there was no explicit focus window
  40. then keystrokes went to the window under the mouse.  This behavior
  41. seemed inconsistent and arbitrary to me, so I changed it.  In Tk 3.0
  42. keystrokes are dropped if you have no focus, but the focus is set to
  43. "." on application startup.
  44.