Tkinter.Text.edit_modified() TypeError

M

Michael Spencer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top