[incr Tk] is a paradigm for building mega-widgets, and a set of base classes which support the paradigm. The inheritance hierarchy for [incr Tk] looks like this:[incr Tk] supplies three base classes that reside in the ![]()
itknamespace: All [incr Tk] mega-widgets are derived fromitk::Archetype, which manages component widgets and configuration options. The base classitk::widgetadds a frame which acts as the "hull" for the mega-widget. Mega-widgets like aComboboxmight be derived fromitk::Widget, since they sit inside of other frames and toplevels. The base classitk::Toplevel, on the other hand, adds a toplevel widget as the "hull" component. Mega-widgets like aDialogorMessageDialogmight be derived fromitk::Toplevel, since they sit in their own toplevel window.Mega-widget designers specialize these base classes by adding components into the "hull". The [incr Widgets] package, for example, is built in exactly this manner. Here are some more examples: