-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I'm trying to build a project on Tk/Aqua using the tile toolkit. I'm
having some trouble with the notebook widget, and am unsure how to proceed.
I have set up the notebook with two tabs, and both tabs display
correctly, but I'm not able to select any pages *under* the tabs. Here's
my code:
#make notebook
tframe .notebookholder
pack .notebookholder -side top -fill x
tnotebook .notebookholder.nb
pack .notebookholder.nb -side top -fill x
.notebookholder.nb add [tlabel .notebookholder.nb.stuff] -text "The real
deal"
.notebookholder.nb add [tlabel .notebookholder.nb.label1] -text "Not
much going on here..."
.notebookholder.nb.stuff add [tlabel
.notebookholder.nb.stuff.stufflabel] -text "Will this work?"
pack .notebookholder.nb.stuff .notebookholder.nb.label1 -side bottom -fill x
When I run the script, here's the error message I get:
Error in startup script: bad command "add": must be configure, cget,
instate, or state
~ while executing
".notebookholder.nb.stuff add [tlabel
.notebookholder.nb.stuff.stufflabel] -text "Will this work?""
It's the fourth-level widget
here--.notebookholder.nb.stuff.stufflabel--that I want to display when I
~ select the .notebookholder.nb.stuff tab. I've read the documentation
at the tile sourceforge site and I thought "add" was the correct command
to use. But, it's not working.
Can anyone tell me what I'm doing wrong?
By the way--I think the Tile project is terrific. The Aqua theme makes
my script look absolutely native; the pinstripe background, especially,
is what's missing from the core Tk widgets, and the notebook and
progress bar widgets are a very nice touch. Thanks for making this
available.
- --
Kevin Walzer, PhD
WordTech Software--Open Source Applications and Packages for OS X
http://www.wordtech-software.com
http://www.smallbizmac.com
http://www.kevin-walzer.com
mailto:sw...@wo...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBOI1SF6m9qPmThLQRAg3dAJ42+DWsF/Vc8AeabDjHZO8knqw0ngCdFYGc
MyuOKfoo61i9zMXYPWGYwdc=
=vCkd
-----END PGP SIGNATURE-----
|