[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tk listbox insert problem?
- To: email@example.com
- Subject: tk listbox insert problem?
- From: firstname.lastname@example.org (Toshiyasu Morita)
I've been hacking on the hello sample, and I'm trying to construct a listbox with some text in it. Here's a code fragment: tk->cmd(t, "listbox .l -height 60 -width 200"); tk->cmd(t, ".l insert end \"Mary had a little lamb\""); tk->cmd(t, "pack .l"); tk->cmd(t, "update"); Unfortunately, I wind up with a listbox which contains: "Mary had a little lamb" which is not what I wanted. I'm trying to achieve: Mary had a little lamb within a textbox. What am I doing wrong? Toshi