This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gpolo
Recipients gpolo, loewis, mkiever, wmula
Date 2008-09-16.01:37:16
SpamBayes Score 7.254057e-10
Marked as misclassified No
Message-id <1221529094.5.0.583673150408.issue1602742@psf.upfronthosting.co.za>
In-reply-to
Content
Uhm, now I see.. Tkinter already formats it correctly, and you shouldn't
be using itemconfigure for this task. If you try it directly in tk, like
this:

canvas .c
.c create text 0 0 -text {a b}
.c itemconfigure 1 -text

You would get something like this:

-text {} {} {} {a b}

While

.c itemcget 1 -text

Will return the same as Python: "a b"

Now what remains is to see how useful is to use itemconfigure for this,
and if it is worth making canvas.itemconfigure(id)['text'][-1] return "a
b" instead of ("a", "b"). Changing Misc._configure is too risky given
there are no tests for Tkinter (and I find it weird sometimes, someone
will still have to explain me why Tkinter plays with cnf and kw all the
time), the other option involves leaving these special needings in Text
and is something I dislike because other widgets could use these new
things that would be added. 
Yet another option would be to start writing unit tests for Tkinter and
much of these bugs would end up being caught and hopefully fixed properly.
History
Date User Action Args
2008-09-16 01:38:14gpolosetrecipients: + gpolo, loewis, mkiever, wmula
2008-09-16 01:38:14gpolosetmessageid: <1221529094.5.0.583673150408.issue1602742@psf.upfronthosting.co.za>
2008-09-16 01:37:18gpololinkissue1602742 messages
2008-09-16 01:37:16gpolocreate