Bug 3285 - tkinter fails to handle callbacks!
: tkinter fails to handle callbacks!
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/tkinter22)
: unstable
: all Linux
: P2 blocker
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2003-11-18 15:39 by
Modified: 2005-07-13 15:45 (History)


Attachments
proposed fix (2.03 KB, patch)
2003-11-18 16:08, Andrey V Khavryuchenko
no flags Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-11-18 15:39:36
[akhavr@netmaster tkinterbug]$ cat main.py 
import Tkinter

def handleMap(ev): print 'handleMap', ev

root = Tkinter.Tk()
canvas = Tkinter.Canvas(root)
canvas.bind('<Map>', handleMap)
canvas.pack(side='left', fill='both')
root.mainloop()
[akhavr@netmaster tkinterbug]$ rpm -qa| grep python 
python22-devel-2.2.2-alt3.1
MySQL-python-0.9.2-alt1
pythonlib-1.28-alt3
ClientCookie-python-0.4.9-alt0.1
python22-2.2.2-alt3.1
[akhavr@netmaster tkinterbug]$ rpm -qa | grep tkinter 
tkinter22-2.2.2-alt3.1
[akhavr@netmaster tkinterbug]$ python main.py 
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 1299, in __call__
    args = apply(self.subst, args)
  File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 1032, in _substitute
    e.num = getint(b)
ValueError: invalid literal for int(): ??
------- Comment #1 From 2003-11-18 16:08:56 -------
Created an attachment (id=316) [details]
proposed fix

Works for me
------- Comment #2 From 2003-11-28 13:29:04 -------
package tkinter is obsolete. reassign bug to new package.
------- Comment #3 From 2004-01-11 13:07:27 -------
исправлено в питоне 2.2.3 / 2.3.2