Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

Tkinter.Text.edit_modified() TypeError

 
 
Michael Spencer
Guest
Posts: n/a
 
      01-15-2004
Using:
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\Tkinter.py", line 1345, in __call__
return self.func(*args)
File "\\Cc1040907-a\c$\Documents and Settings\Michael\My
Documents\PyDev\GUI\T
Egui.py", line 64, in <lambda>
command = lambda tag = maketag(i), label =
label:menudispatch(label,tag))
File "\\Cc1040907-a\c$\Documents and Settings\Michael\My
Documents\PyDev\GUI\T
Egui.py", line 27, in menudispatch
return func()
File "\\Cc1040907-a\c$\Documents and Settings\Michael\My
Documents\PyDev\GUI\T
Egui.py", line 49, in handle_File_Close
if tbx1.edit("modified"):
File "D:\Python23\lib\lib-tk\Tkinter.py", line 2819, in edit
return self._getints(
File "D:\Python23\lib\lib-tk\Tkinter.py", line 972, in _getints
return tuple(map(getint, self.tk.splitlist(string)))
TypeError: coercing to Unicode: need string or buffer, bool found
 
Reply With Quote
 
 
 
Reply

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



Advertisments