Alex Garipidis wrote:
> Thank you for your answer. I am experiencing some problems with the code
> you suggested. The
>
> end = text.search("\W", pos + " 1 char", regexp=True)
>
> gives me this as a result: TclError: bad text index " 1 char".
oops, transcription error. try:
end = text.search("\W", pos + " + 1c", regexp=True)
or just
end = text.search("\W", pos + "+1c", regexp=True)
</F>
_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss