\documentclass[]{article}
\usepackage{amsmath,graphicx,supertabular,hyperref,tabularx,ifthen}
\title{TIP \#248: Integrate Tile into Tk as Ttk}
\date{June 08, 2005}
\author{Jeff Hobbs, Donal K. Fellows}
\urlstyle{sf}
\setlength{\parskip}{1ex}
\setlength{\parindent}{0pt}
\def\tipversion$#1${\texttt{\$#1\$}}
\def\tiplangle#1{\ensuremath{<}}
\def\tiprangle#1{\ensuremath{>}}
\def\tipbar#1{\ensuremath{|}}
\def\tipmail#1#2{\(\langle\){\small\expandafter\url{#1@#2}}\(\rangle\)}
\ifx\pdfoutput\undefined
\newcommand{\tipimage}[2]{\typeout{Make sure you download #1.eps}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.eps}}{\includegraphics[width=0.8\textwidth]{#1.eps}}}
\newcommand{\tipxref}[1]{}
\newcommand{\tipxrefend}{}
\else
\newcommand{\tipimage}[2]{\typeout{Make sure you create #1.pdf}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.pdf}}{\includegraphics[width=0.8\textwidth]{#1.pdf}}}
\pdfcatalog{/PageMode /UseOutlines}
\newcommand{\tipxref}[1]{\pdfannotlink attr {/C [0.5 0.5 1.0] /Border [0 0 1]} goto name {#1}}
\newcommand{\tipxrefend}{\pdfendlink}
\fi
\newenvironment{tipabstract}{\begin{abstract}}{\end{abstract}}
\begin{document}\maketitle
\begin{center}\begin{tabularx}{\linewidth}{|r@{: }X|}\hline
\textbf{TIP \#248}&\textbf{Integrate Tile into Tk as Ttk}\\\hline
Author&

Jeff Hobbs \tipmail{jeffh}{activestate.com}
\par
Donal K. Fellows \tipmail{dkf}{users.sf.net}
\\
Created&Wednesday, \(\text{8}^{\text{th}}\) June 2005\\
Type&Project\\
Tcl Version&\(8.5\)\\
State&Final\\
Vote&Done\\
Version&\tipversion$Revision: 1.7 $\\
Obsoletes&172\\
Post History&\\
\hline\end{tabularx}\end{center}
\thispagestyle{empty}\pagestyle{empty}
\begin{tipabstract}

This TIP proposes that the tile themed widget set be integrated into Tk from 8.5 onwards as the static package Ttk.
\end{tipabstract}
\tableofcontents\setcounter{page}{0}\clearpage\pagestyle{plain}

\section{Rationale}

It is well known that Tk has been lacking in graphical glitz for a few years; GUI standards have moved on whereas Tk has remained largely static. The core of Tk is still great (e.g. its resizing behaviour is second to none) but fancy shaded buttons are what modern users expect. Through the sterling work of Joe English and others, the Tile package is available which offers a new set of widgets for use on top of the Tk foundation, and which provide that extra graphical polish by leveraging underlying graphics layers (e.g. the Luna theming engine on Windows XP, the Aqua theming on MacOSX, etc.) This is \textit{exactly} what we need, so we should ensure that every user of Tk can take advantage of these new capabilities (universality is important) through updating our distribution strategy.

This TIP acknowledges that Tile is a project that is still in development, but the current state is stable enough for inclusion and will encourage wider use. It is expected that more changes will come later. This TIP proposes integration of Tile into the Tk core as the Ttk package. It would be part of the standard core, but have a version different from the overarching Tk (much as Tcl has the http package). This will allow for minor user-level changes and continued rapid development as part of the larger Tk framework (eg, Tk patchlevel releases can have minor version bumps to the Ttk package).

Note that although the Tile widgets are \textit{mostly} drop-in replacements for the Tk core widgets, they are not perfect stand-ins due to the differences in the way state is managed. This means that this TIP categorically does not propose the replacement of Tk's widgets with Tile's.

\section{Proposed Changes}
\begin{enumerate}
\item{}
Full integration of the Tile package into the Tk source tree. This would include renaming of source files to fit inside the Tk directory structure. A static package named Ttk will signify their availability and specific version.
\setcounter{enumi}{1}
\item{}
To facilitate mixing of widgets between Tk and Tile, all Tk's widget creation commands are to be \textit{additionally} declared in the \textbf{::tk} namespace and [\textbf{namespace export}]ed from there. Allowing users to mix class Tk and themed Ttk widgets improves the overall richness and flexibility of Tk applications.
\end{enumerate}

\section{Discussion}

See the discussion in the thread at \url{http://aspn.activestate.com/ASPN/Mail/Message/tcl-core/2761205.}

Tile is expected to continue as an 8.4-compatible package while 8.4 is still the standard stable version.

\section{Copyright}

This document has been placed in the public domain.

\section{Colophon}

\textit{TIP AutoGenerator --- written by Donal K. Fellows}
\end{document}
