Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dmaggian

    Can't bind KeyPress event to Canvas

    The response I got from Jeff Hobbs on this issue is documented below; This fixes the problem. This is a classic problem with a few widgets in Tk. The widget has to have *focus* to receive key input. What you can do is: bind Canvas <ButtonPress-1> {+; focus %W} to force focus always into...
  2. dmaggian

    Can't bind KeyPress event to Canvas

    Hmmm... I can think of lot's of reasons to bind keys to a canvas widget. For example, in the drawing program I'm working on right now I have the ability to select objects to be moved or deleted, I'd like to end the selection by hitting the Escape key, once the objects are selected, I might like...
  3. dmaggian

    Can't bind KeyPress event to Canvas

    I can't seem to bind key press events to the canvas widget.I used the wish shell for the simplest possible test and wrote the following code from the console. (bin) 2 % canvas .can -bg black .can (bin) 3 % pack .can (bin) 4 % bind .can <Button-1> {tk_messageBox -message "%W got button press"}...
  4. dmaggian

    Column Selection in TkTable

    Hey all, I'm new to the forum but not new to tcl though I've been away from it for some years. I'm writing a control application that needs to send data to a remote embedded device and using the tkTable widget for the first time as an interface. I started with a variation of the buttons.tcl...

Part and Inventory Search

Back
Top