New to Tkinter...
Peter G Carswell
pete at osc.edu
Tue Apr 19 10:27:16 EDT 2005
Eric Brunel wrote:
> This is not an error. It's just the value of the _test function in the
> Tkinter module. You don't give the URL where you found the
> installation/test instructions, but you probably want:
>
> Tkinter._test()
>
> which *calls* the function. Tkinter._test just returns its value
> (functions are first class objects in Python...)
I did get a positive result on my linux desktop. However, on my laptop
Fedora Core 1, the Tk window shell popped up with no buttons:
Python 2.2.3 (#1, Oct 15 2003, 23:33:35)
[GCC 3.3.1 20030930 (Red Hat Linux 3.3.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import _tkinter
>>> import Tkinter
>>> Tkinter._test()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 3118, in _test
label = Label(root, text=text)
File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 2285, in __init__
Widget.__init__(self, master, 'label', cnf, kw)
File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 1780, in __init__
self.tk.call(
SystemError: Py_UNICODE and Tcl_UniChar differ in size
>>>
pete
--
Peter G. Carswell
The Ohio Supercomputer Center
pete at osc.edu
work: 614.292.1091
fax: 614.292.XXXX
"DOC NOTE, I DISSENT. A FAST NEVER PREVENTS A FATNESS. I DIET ON COD."
-Peter Hilton
More information about the Python-list
mailing list