Tkinter.Text.edit_modified() TypeError

Discussion in 'Python' started by Michael Spencer, Jan 15, 2004.

  1. 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
    Michael Spencer, Jan 15, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. George Trojan

    edit_modified() bug in Tkinter?

    George Trojan, Mar 6, 2004, in forum: Python
    Replies:
    0
    Views:
    382
    George Trojan
    Mar 6, 2004
  2. Pedro Werneck
    Replies:
    0
    Views:
    574
    Pedro Werneck
    Jan 21, 2005
  3. Alex9968
    Replies:
    0
    Views:
    568
    Alex9968
    Mar 19, 2008
  4. Alex9968
    Replies:
    0
    Views:
    1,501
    Alex9968
    Mar 19, 2008
  5. dmitrey
    Replies:
    0
    Views:
    1,067
    dmitrey
    Oct 14, 2008
Loading...

Share This Page