Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Tkinter.Text.edit_modified() TypeError

Thread Tools

Tkinter.Text.edit_modified() TypeError

Michael Spencer
Posts: n/a
Python 2.3.3
Tkinter.TclVersion = 8.4000000000000004
Windows XP

Calling edit_modified() on a Tkinter.Text object raises TypeError when
it gets a Boolean True response.

Exception in Tkinter callback
Traceback (most recent call last):
File "D:\Python23\lib\lib-tk\", line 1345, in __call__
return self.func(*args)
File "\\Cc1040907-a\c$\Documents and Settings\Michael\My
Documents\PyDev\GUI\T", line 64, in <lambda>
command = lambda tag = maketag(i), label =
File "\\Cc1040907-a\c$\Documents and Settings\Michael\My
Documents\PyDev\GUI\T", line 27, in menudispatch
return func()
File "\\Cc1040907-a\c$\Documents and Settings\Michael\My
Documents\PyDev\GUI\T", line 49, in handle_File_Close
if tbx1.edit("modified"):
File "D:\Python23\lib\lib-tk\", line 2819, in edit
return self._getints(
File "D:\Python23\lib\lib-tk\", line 972, in _getints
return tuple(map(getint,
TypeError: coercing to Unicode: need string or buffer, bool found
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TypeError: can't multiply sequence to non-int Python Python 1 11-03-2003 09:27 PM
MySQLdb: TypeError: not all arguments converted ... Achim Domma Python 3 10-14-2003 04:42 PM
datetime: .datetime-.datetime = .timedelta, .time-.time=TypeError ? Christos TZOTZIOY Georgiou Python 3 09-13-2003 10:44 AM
RE: datetime: .datetime-.datetime = .timedelta, .time-.time=TypeError ? Tim Peters Python 0 09-09-2003 12:57 AM
Newbie question: Strange TypeError Tim Isakson Python 2 07-07-2003 07:10 AM