[Idle-dev] SearchBar - Have fun searching in IDLE!

Weeble clockworksaint at gmail.com
Thu Jun 25 15:18:55 CEST 2009

On Wed, Jun 24, 2009 at 11:15 AM, Tal Einat <taleinat at gmail.com> wrote:
> This version should work with any 2.x version of Python from 2.3 onwards. I have tested with versions 2.3 through 2.6 on WindowsXP. I'd appreciate anyone who can give it a try and see how it works out, especially non-Windows users.

Something's not working for me. I get lots of exceptions like this
every time I type anything into the find box:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python26\lib\lib-tk\Tkinter.py", line 1410, in __call__
    return self.func(*args)
  File "c:\python26\lib\idlelib\SearchBar.py", line 204, in
    elif self._set_search_expression():
  File "c:\python26\lib\idlelib\SearchBar.py", line 523, in
  File "c:\python26\lib\idlelib\WindowSearchEngine.py", line 265, in
    string, case_sensitive)
  File "c:\python26\lib\idlelib\WindowSearchEngine.py", line 28, in __init__
  File "c:\python26\lib\idlelib\WindowSearchEngine.py", line 52, in _mark_hits
    tag_add("findmark", start_idx, start_idx + add_string_len_str)
TypeError: unsupported operand type(s) for +: '_tkinter.Tcl_Obj' and 'str'

According to the About box, I'm on Python 2.6 and Tk 8.5.

More information about the IDLE-dev mailing list