I
Ivan Letal
I have just tried this code..
Tkinter import *
root = Tk()
def callback(event):
print "clicked at", event.x, event.y
frame = Frame(root, width=100, height=100)
frame.bind("<Button-1>", callback)
frame.pack()
root.mainloop()
... on my SuSE Linux 8.2, Python 2.2.2, python-tk 2.2.2.
This opens a new window, but there is a problem when I click on it. I
tried similar code where clicking on a button does the same. Can anyone
help?
Here is the error:
Exception in Tkinter callback
Traceback (most recent call last):
File
"/var/tmp/python-2.2.2-build//usr/lib/python2.2/lib-tk/Tkinter.py", line
1299, in __call__
args = apply(self.subst, args)
File
"/var/tmp/python-2.2.2-build//usr/lib/python2.2/lib-tk/Tkinter.py", line
1035, in _substitute
e.height = getint(h)
ValueError: invalid literal for int(): ??
Tkinter import *
root = Tk()
def callback(event):
print "clicked at", event.x, event.y
frame = Frame(root, width=100, height=100)
frame.bind("<Button-1>", callback)
frame.pack()
root.mainloop()
... on my SuSE Linux 8.2, Python 2.2.2, python-tk 2.2.2.
This opens a new window, but there is a problem when I click on it. I
tried similar code where clicking on a button does the same. Can anyone
help?
Here is the error:
Exception in Tkinter callback
Traceback (most recent call last):
File
"/var/tmp/python-2.2.2-build//usr/lib/python2.2/lib-tk/Tkinter.py", line
1299, in __call__
args = apply(self.subst, args)
File
"/var/tmp/python-2.2.2-build//usr/lib/python2.2/lib-tk/Tkinter.py", line
1035, in _substitute
e.height = getint(h)
ValueError: invalid literal for int(): ??