textwidget.tag_bind("name", "<Any-KeyPress>", self.donothing) not working
Christopher Subich
csubich.spam.block at spam.subich.block.com
Wed Oct 26 10:55:37 EDT 2005
shannonl wrote:
> Hi all,
>
> For some reason this bind is calling the donothing function, like it
> should, but is then allowing the text to be inserted into the Text
> widget.
[...]
> This bind does work on the text widget as a whole, but on a individual
> tag, it does not.
You're trying to prevent a user from editing the text -within- a single
tag. Does Tk even support this?
Is your bind-applied-to-tag even firing, when the user presses a key
within a tag?
More information about the Python-list
mailing list