ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tktable-users
tktable-users
[Tktable] Problem with Tile--is this the right list?
by Kevin Walzer other posts by this author
Sep 2 2004 6:26PM messages near this date
Re:[Tktable] help regarding tktable | Re: [Tktable] TkTable Postscript
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm not sure where to go to help with a problem with Tk/Tile--I've
gotten no reply on comp.lang.tcl, so thought this might be a better list
to try, as there's no tile-user's list and I'm not a Tile developer. If
I'm looking in the wrong place, please advise.

Anyway, my situation:

I'm trying to create a GUI using the Tk Tile theming system and I'm
having problems with the notebook widget. Here's my code:

#make notebook
tframe .notebookholder
pack .notebookholder -side top -fill x

tnotebook .notebookholder.nb -padding 6
.notebookholder.nb add [tframe .notebookholder.nb.stuff] -text "The real
deal"
.notebookholder.nb add [tlabel .notbookholder.nb.label1] -text "Not much
going on here..."

.notebookholder.nb add [tframe .notebookholder.nb.f1] -text "First tab"
- -underline 4
.notebookholder.nb add [tlabel .notebookholder.nb.label2] -text
"TkDarwinPorts rules!"

pack .notebookholder.nb -side bottom -fill y

I want the two tframe widgets (.notebookholder.nb.stuff and
.notebookholder.nb.f1) to be the tabs, and the two tlabel widgets
(.notebookholder.nb.label1 and .notebookholder.nb.label2) to be the
child widgets, i.e. the windows that are displayed beneath the tabs. But
this code only gets me the tabs with no windows underneath.

Can someone explain to me what I'm doing wrong here? I've looked at the
sample code for the Tile demo, but I'm pretty new to Tcl and that
particular code is hard for me to follow and I haven't seen a lot of
other applications using this particular widget set.

By the way--Tile is an incredible thing for Mac-based Tcl/Tk developers.
~ Finally, Tk can look completely native! Tk/Aqua is a great achievement,
but it misses some parts of the Apple HIG, especially the pinstripe
background. I'm working on a GUI for DarwinPorts (written in Tcl), and
one of the reasons I'm using Tk and Tile is to show that great Mac
interfaces can be done in this toolkit.

Thanks.


- --
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@[...].com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBN2XqF6m9qPmThLQRAhHeAJwLLDiE9MMJ+imiNcKRNOSkqTbe/wCeLai9
FA5ZBaWnZopRvuMZucH6Oa0=
=6bwr
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Tktable-users mailing list
Tktable-users@[...].net
https://lists.sourceforge.net/lists/listinfo/tktable-users

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved