Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-11-13
11:18 • Closed ticket [f2f98d312b]: Minimal version of Tcl Tk plus 6 other changes artifact: ac53892eaa user: serhiy.storchaka
2018-02-03
13:32 • Ticket [f2f98d312b]: 3 changes artifact: c2ef19c0ce user: chw
2018-02-02
22:27 • Ticket [f2f98d312b]: 3 changes artifact: 361ec4fadc user: kevin_walzer
17:22 • New ticket [f2f98d312b]. artifact: 452eb87f60 user: anonymous

Minimal version of Tcl Tk

Closed / Rejectedf2f98d312bb7e479ac183c1052e689807326ab30Created 9 years agoUpdated 20 days ago
Descriptionplain2018-02-02 17:22:02
A build of Tcl Tk with the minimal features to be used only like A GUI framework for other programming languages or embedded in other systems.

Tcl Tk is going into the direction to be a "all batteries included" like Python and it lost a little bit its purpose from the beginning to be used like a GUI framework for other programming languages or to be embedded in another systems.

Other programming languages like Python provides a new build with less features only for embedded systems. You can see for example at the end of the page the  embeddable versions of Python 3.6 for Windows:

https://www.python.org/downloads/release/python-361/

Being a lightweight GUI framework has its own advantages and inconveniences. One of the advantages is that its more easy to maintain the code because the code remains relatively more small compared to other more complete GUI frameworks.

For example, one interesting feature could be to remove TclOO in this lighweight version of Tcl Tk because this library is not used to build GUI applications in another programming language. For example, Tkinter use behind the scenes simple Tk commands like "button", "label", "frame",... But it doesn't use anything related to TclOO to build the GUI. Python doesnt need to use the object oriented library of Tcl to build a GUI using Tkinter. Python is an object oriented language and it has no need to do that. The same happens with other programming languages using Tcl Tk for building GUI's. 

Tcl Tk is still used nowadays specially for building GUI's in another programming languages, like in the case of Python with Tkinter. For that reason, its better to satisfy the needs of the average user of Tcl Tk, a user building GUI's in another programming language, and provide a version with minimal features and requirements only to build GUI's.
kevin_walzerplain2018-02-02 22:27:19
The Tcl/Tk developers do not provide any builds of Tcl/Tk for any platforms. Source releases do include some additional, optional packages, such as sqlite. There is no reason you cannot download the source code to Tcl/Tk and build only what you need. The language's core is still quite compact, even with additions such as TclOO (which is completely orthogonal to other languages' bindings to Tk).
chwplain2018-02-03 13:32:09
As you write "minimal features", "embedded systems", "lightweight GUI" what are your exact expectations of Tcl/Tk in this regard?

A static build of Tcl with Tk still weighs at least 3MB (my personal estimation) and still needs tons of infrastructure. Thus "lightweight" is debatable. Again, what do you expect?
serhiy.storchakawiki2026-11-13 11:18:46

Closing as Kevin declined it above: the core does not ship binary builds, and a minimal build can be configured from the sources.

Log in (anonymous is fine) to add a comment.