Version 28 of What is a Megawidget

Updated 2004-01-16 18:28:21

Purpose: collect information and pointers to what megawidgets are, how to write them, etc.

Occasionally these have been called meta-widgets rather than megawidgets.

A mega widget is NOT an attempt to create new, unique, widgets. Instead, it is an effort to combine existing widgets in ways that are commonly needed (or at the very least interesting to the person who is writing the megawidget). - RS: Note that in contrast to megawatts or megabytes, a megawidget is not worth a million widgets ;-)

See also Composite fields megawidgets.

See Adding User Data to Widgets the Megawidget Way.

Steve Uhler's 1996 Tcl workshop presentation slides on the search for the perfect megawidget can be found at

Chengye Mao mailto:[email protected] has a web page which discusses building combined widgets (aka mega widgets) in pure Tcl at .

Creating a BWidget Widget talks about what it takes to write another Bwidget widget - sort of a similar topic. Also see Enhancing BWidget, which talks about how to get more bang out of using bwidget widgets.

escargo 16 Jan 2004 - In a recently modified page, A scrolled frame, it was mentioned that the scrolledframe megawidget, since its used the grid geometry manager, can only be within a parent that also uses the grid geometry manager. What are the ways that a megawidget can be queried to determine which geometry manager it can be used with? Is this an Introspection issue?

Here are some megawidget frameworks (in other words, code designed to make it easier to build megawidgets). Please add to the following list.

 What: [incr Tk] Slate megawidget
 Description: The Slate is an [incr Tcl] megawidget layered over the Tcl/Tk
        canvas.  It contains visual hierarchy, symbolic item aspects and
        interaction support.  Release 3.0alpha supports
        Tcl 8.0 or [incr Tcl] 3.0.
 Updated: 07/1998
 Contact: mailto:[email protected] (John Reekie)
 What: Pmw
 Description: A megawidget framework for constructing high-level
        compound widgets in Python 1.5.2 using Tk 8.x. Contains of a set of
        base classes for building megawidgets and a library of
        megawidgets such as ComboBox, Dialog, ButtonBox, etc. Also
        contains a python interface to BLT2.1's busy, graph and vector
        commands. The PmwContribD web site provides several Pmw based Tkinter
        widgets, including a ProgressMeter, basic TreeNavigator, and a GUI
        application framework for creating simple GUI apps quickly.
 Updated: 10/1999
 Contact: mailto:[email protected] (Greg McFarlane)
        mailto:[email protected] (Doug Hellmann)

Category GUI