K
Kenneth McDonald
After a couple of unsuccessful experiments, I'm afraid it's time to
ask the group. What I want to do is to use the text widget for
display, but to have keyboard events processed solely by Ruby. I've so
far been unsuccessful in unbinding any of the text widget's built-in
functionality, and don't want to go in and modify text.tcl, as that
strikes me as highly inelegant. I'm assuming that somehow I need to
(1) unbind the text widget I'm using from all events, and then (2)
bind all key events to (say) the top-level window. Unfortunately, my
attempts at this have met with little success. (None). Could some Tk-
fu master point me in the right direction? (At the moment, I simply
can't get things unbound from the text widget; I thought
text.bindtags([]) might work, but it didn't.)
Many thanks,
Ken
ask the group. What I want to do is to use the text widget for
display, but to have keyboard events processed solely by Ruby. I've so
far been unsuccessful in unbinding any of the text widget's built-in
functionality, and don't want to go in and modify text.tcl, as that
strikes me as highly inelegant. I'm assuming that somehow I need to
(1) unbind the text widget I'm using from all events, and then (2)
bind all key events to (say) the top-level window. Unfortunately, my
attempts at this have met with little success. (None). Could some Tk-
fu master point me in the right direction? (At the moment, I simply
can't get things unbound from the text widget; I thought
text.bindtags([]) might work, but it didn't.)
Many thanks,
Ken