python tkinter: text widget method edit_modified does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python |
Fix Released
|
Unknown
|
|||
python2.4 (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
python2.5 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python2.4
When tkinter and a text widget the method edit_modified does not work correctly. As I tried to read the status of the text widget (if it is modified or not), it gave the following error:
Traceback (most recent call last):
File "lib-tk/
return self.func(*args)
File "Tools/
b=self.
File "lib-tk/
return self.edit(
File "lib-tk/
return self._getints(
File "lib-tk/
return tuple(map(getint, self.tk.
TypeError: coercing to Unicode: need string or buffer, bool found
This seems to be related to the bug described in https:/
Changed in python2.4: | |
importance: | Undecided → Low |
status: | Unconfirmed → Confirmed |
Changed in python: | |
status: | Unknown → New |
Changed in python: | |
status: | New → Fix Released |
As a workaround you can get the status by calling:
print root.tk. call('eval' ,'%s edit modified' %self.textwidge t)
where self.textwidget is the variable where the text widget was assigned to.