Tkinter + Tcl help

Jeff Epler jepler at unpythonic.net
Tue Jul 5 10:25:19 EDT 2005


I think you need to write
    root.tk.eval('load', '...\\libtcldot.so.0')

When you write
    root.tk.eval("x y z")
it's like doing this at the wish/tclsh prompt:
    # {x y z}
Not like this:
    # x y z
Now, how useful it is to have a command called "x y z", I can't
guess... but tcl would let you do it.

I've also doubled the backslash in your library filename.  When using
windows-style paths in string literals, you must either double the
backslashes, or use r'' strings.  When you don't, it will often work,
but if the character after the un-doubled backslash is one with special
meaning (including the commonly-seen \r and \t, but also other letters)
then you'll get a pathname and an error that leave you scratching your
head.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050705/88093f27/attachment.sig>


More information about the Python-list mailing list