Bug 3285 - tkinter fails to handle callbacks!
Summary: tkinter fails to handle callbacks!
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: tkinter22 (show other bugs)
Version: unstable
Hardware: all Linux
: P2 blocker
Assignee: Andrey Orlov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-18 15:39 MSK by Andrey V Khavryuchenko
Modified: 2005-07-13 15:45 MSD (History)
0 users

See Also:


Attachments
proposed fix (2.03 KB, patch)
2003-11-18 16:08 MSK, 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 Andrey V Khavryuchenko 2003-11-18 15:39:36 MSK
[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 Andrey V Khavryuchenko 2003-11-18 16:08:56 MSK
Created attachment 316 [details]
proposed fix

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