def find(): start = 1.0 while 1: find = text_to_be_found.get()
It could be that you define "find" as a function and a variable. It could also be that "text_to_be_found" is not within the scope of the function. Print the result of text_to_be_found.get() and see if it is returning anything.
I did what you said and here are the results:
I changed find (variable) to f, then:
f = text_to_be_found.get()
pos = textarea.search(f, start, stopindex=END)
also, I added the following lines (outside the loop):
print(f)
print(pos)
The first print outputs whatever I'm searching for.
The second print prints nohing...
I think the problem is that there is something wrong with pos.