Chapter 8. [incr Tk]

[incr Tk] is not part of the core Tcl/Tk package, but can be obtained for free at http://www.tcltk.com/itk. This chapter covers Version 3.0.[1]

[incr Tk] provides an object-oriented framework for creating new graphical widgets, known as mega-widgets. Mega-widgets are made up of standard Tk widgets, and one mega-widget can contain nested mega-widgets. The widgets and mega-widgets that go into a mega-widget are called components.

Using the basic widgets provided by the Tk toolkit and the object-oriented programming capabilities of [incr Tcl], [incr Tk] allows the user to write new widgets in Tcl that look and act just like the ordinary Tk widgets.

The [incr Tk] distribution also comes with more than 30 predefined mega-widgets.

[1] This chapter is based on the quick reference in Michael McLennan’s Chapter 3 of Tcl/Tk Tools (O’Reilly & Associates).

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.