SelectingTextWithATwist
Rbtns
rbtns082484 at hotmail.com
Thu Aug 9 15:22:53 EDT 2001
I am using Tkinter with Python and I have a text box. In this text box
I have something to the effect of:
ABCDEFGHIJKLMNOP
QRSTUVWXYZABCDEF
This is two lines of text in one text widget. I want to be able to
select from the B in the first line to the X in the second line,
producing:
BCDEFGH
RSTUVWX
as if a box was drawn containing B-H and R-X not:
BCDEFGHIJKLMNOP
QRSTUVWX
as a regular text editor would do.
I think this can be accomplished through the highlight option/method or
a canvas behind the embeded text. Can anyone help with this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20010809/3226a895/attachment.html>
More information about the Python-list
mailing list