By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,907 Members | 1,932 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,907 IT Pros & Developers. It's quick & easy.

Tkinter Text widget incremental search

P: n/a
I want to create a search function on a Text() widget full of text like the
incremental search in emacs -- if you type an "f" emacs goes to the first
"f", type another "f" and it goes to the first place where "ff" shows up in
the text, etc.

How would you search the text of the Text() for a string like "ff" and get
back the proper index position (line.char) AND have that take into account
word wrapping? Text().get(0.0, END).split("\n") returns a bunch of lines,
but one line in the List may be many text widget/screen lines.

Thanks!

Bob
Sep 28 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.