[Tkinter-discuss] (no subject)
Kenneth McDonald
kmmcdonald at wisc.edu
Tue Mar 23 14:38:57 EST 2004
From previous message:
---------------------------------------------
So where you're trying to do
text.insert(0.0, "blah", [other, args, here])
you should try
text.insert(0.0, "blah", tuple([other, args, here]))
or
text.insert(0.0, "blah", *[other, args, here])
or
text.insert(0.0, "blah", other, args, here)
-----------------------------------------------
And to be a little pickier, that should probably
be something like:
text.insert("1.0", ...)
as Text indexes of the n.n form are (a) still strings,
and (b) count lines from 1, not from 0. "0.0" will
probably work, but if it does, it will refer to the same
location as "1.0"
However, I'm surprised from the above that
text.insert(0.0, "blah", tuple([other, args, here]))
would work. Why wouldn't that have the same
problem as
text.insert(0.0, "blah", [other, args, here])
Thanks,
Ken McDonald
More information about the Tkinter-discuss
mailing list